Form field capture before submit
Scripts read typed or autofilled form values and can send them before the person presses submit.
In one line
Can see what you type or autofill in a form before you press submit
Scripts read typed or autofilled form values and can send them before the person presses submit.
Email and name typed into a newsletter box can reach ad trackers on blur or autofill, even if never submitted. Leaky Forms (USENIX Security 2022) found about 1,800 EU and about 3,000 US crawl sites leaking emails to trackers.
What it can and can't do
What the user does: You type or autofill into a form on a page with certain scripts
It can
- See typed or autofilled values as soon as they appear
- Send those values to a server before you submit
- Capture email, phone and name fields
- Keep what you entered even if you never press submit
It cannot
- See fields on pages without that script
- Normally capture password fields if the site is built to exclude them
- Work if a script blocker stops the script
- See forms in other tabs or apps
How it differs between platforms: Browsers that block trackers can stop the script in Firefox and Safari. Chrome does not block it by default.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | Script behaviour, any browser |
| Edge | Supported | 1 | Not listed | Script behaviour, any browser |
| Firefox | Supported | 1 | 2004-11-09 | Script behaviour, any browser |
| Safari | Supported | 1 | 2003-06-23 | Script behaviour, any browser |
| Safari on iPhone | Supported | 1 | 2007-06-29 | Script behaviour, any browser |
| Chrome on Android | Supported | 1 | Not listed | Script behaviour, any browser |
| Samsung Internet | Supported | 1 | 2013-04-27 | Script behaviour, any browser |
How a site asks for it
| API | input, change and blur listeners; Meta Pixel automatic advanced matching; autofill reads |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Per event; vendor retention applies |
| How to take it back | Clear site data, browser privacy settings |
| Inside an iframe | Not listed |
Data you get
What comes back: Typed field values
Shape: string
How often: per input event
No individual data fields. The signal is the access itself.
Technical limits
- Cannot read values of password fields unless script is on that page
- Browser autofill fills hidden fields only after a click on a visible one
- Blockers stop vendor domains
The story
What it is
Scripts read what you type in a form, and can send it before you press submit.
For you
You type your email into a box, change your mind and close the page. You may think nothing was sent. A script may have read it as you typed or when autofill filled it, and sent it to trackers.
For makers
A typed email is a high value ID for ad targeting and for follow up, even for people who never finish. Marketers use it to rescue lost leads. A 2022 study found this leak on thousands of sites.
Where you see it
| Type | Example | Apps |
|---|---|---|
| shopping | You enter your email at checkout and leave. An abandoned cart tool already has it and sends a reminder. | Klaviyo, Shopify |
| ads | A news signup box sends your email to an ad tracker the moment you tab out of the field. | Meta Pixel |
| analytics | A form tool logs which fields people leave empty or change, to find where they give up. | Hotjar, Microsoft Clarity |
| games | A game sign up form passes your email to ad partners before you press Create account. | None named |
| security | Login pages watch typing speed to tell humans from bots, which also reads what you type. | Arkose Labs |
| enterprise | A lead form tool saves a half typed contact request, so sales can call the person even if they never press submit. | HubSpot, Drift |
Risks
- Captured even if never submitted
- Autofill can fill hidden fields too
Good uses and abuse
Legitimate uses
- Form analytics, abandonment recovery
Known abuse
- Capturing email before consent or submit
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 5 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2022-08, all: Leaky Forms study published at USENIX Security 2022
Related capabilities
Related
- Meta Pixel. Can tell Meta about your visits and actions on a site that uses the pixel
- Hashed email as identity. Can recognize you across sites by a scrambled version of your email
Sources
How well checked: Based on official documentation.