Commit e6896ea
fix(landing): reject injection-scanner emails at the contact-sales boundary (#5863)
07-11 an SQLi scanner submitted ~19 payload emails like
testing@example.com'||dbms_pipe.receive_message(...)||' to /contact-sales.
The loose EMAIL_RE (no whitespace, one @, a dot) accepted them into the
CONTACT_LEADS KV namespace, and the downstream Bitable leads sync — whose
email column rejects such values inside an atomic batch insert — failed on
every run for six days, silently stalling 30+ real leads.
Tighten EMAIL_RE: dotted alphanumeric domain labels with a letters-only
TLD; local part keeps the common atom charset including apostrophes
(o'brien@…). Red spec first: the new test replays the captured scanner
payloads (red on the old regex) and pins real-lead shapes as passing.
Co-authored-by: NJUHua <113895241+NJUHua@users.noreply.github.com>1 parent f13ed2c commit e6896ea
2 files changed
Lines changed: 34 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
52 | 77 | | |
53 | 78 | | |
54 | 79 | | |
| |||
0 commit comments