My First $ From Real Bug — And It Was Very Simple
A lead-generation form's Name field was inserted into a confirmation email without sanitisation, so raw HTML flowed into the message. An attacker could make the company's own mail server deliver a phishing link to a victim's inbox.
meetcyber.net
Published on meetcyber.net
Bug Bounty
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
The target was a lead-generation form on an e-commerce platform's knowledge base page. The form's purpose is the familiar content-marketing pattern: a visitor enters their details and the platform emails them a free ebook. The form collected three values: an email address, a phone number and a name.
The researcher frames the choice of target as deliberate. Login forms and search bars are tested by everyone; the boring lead-capture form on a knowledge base page is not. The write-up does not name the platform or the specific page beyond describing it as an e-commerce platform's knowledge base.
Setup
The report describes no special tooling. No proxy, no fuzzer, no script is mentioned. The stated requirements were a real email address (the researcher's own), a random phone number, and access to the inbox to see what the platform sent back. The researcher had spent the preceding months on Linux fundamentals, networking protocols, ARP, HTTP/HTTPS and Wi-Fi security, and this was the first real bug they found.
Finding it
The reasoning was about developer expectations rather than about the application's behaviour. A Name field is assumed to be harmless, so it is rarely given the same encoding rigour as a password field. The researcher decided to test whether the value submitted in the Name field would be reflected into the email the platform sends, and whether it would be reflected as raw HTML.
Exploitation
Step 1: Submit an HTML payload in the Name field
The following value was entered into the Name field:
"><a href="https://evil.com">Click Me!</a>
The payload is an anchor element whose href points to a domain the researcher controlled, with visible link text. The email field was filled with a real address belonging to the researcher and the phone field with a random number, then the form was submitted.
Step 2: Inspect the resulting email
A minute later the researcher opened the inbox and found the message from the platform. The injected anchor had been rendered as a working, clickable hyperlink inside an email sent from the platform's own domain, pointing at the researcher's URL. The report states plainly that there was no sanitisation and no encoding: raw HTML from the form field flowed into a real email delivered to a real inbox.

The image sits at the start of the story, introducing the hunt before the target is described.
Step 3: Report and outcome
After validating the behaviour, the researcher wrote a simple report and included a video proof of concept. Three days later the response came back: the report was accepted, a bounty was paid and the researcher was added to the company's hall of fame. The report does not state the bounty amount.

The screenshot is captioned "Small Bounty" and appears next to the description of the accepted report and reward.
Root cause
The Name field's value was inserted into the outbound email without HTML encoding. What the report does establish is the outcome: the value was neither sanitised nor encoded before being placed into the email.
The email came from the company's own legitimate domain and mail server, so spam filters and user suspicion are bypassed.
Impact
The researcher sets out three consequences.
- Phishing from a trusted domain. The message originates from the company's own legitimate domain and mail server, so the usual signals a recipient uses to judge an email, including spam filters and suspicion of the sender, do not apply.
- Spear-phishing at scale. An attacker does not need to spoof the company. They fill in a public form and the company sends the malicious link to the victim's inbox on their behalf.
- A path to stored XSS. If the same submitted content is ever rendered inside the application, for example in an admin dashboard listing recent form submissions, the issue stops being HTML injection and becomes stored XSS. The report presents this as a conditional escalation, not as something that was demonstrated.
Fix
The fix implied by the finding is to HTML-encode the Name value, and every other user-supplied value, at the point where it is written into the email template, so that characters such as <, > and " are emitted as entities rather than markup. The same encoding should be applied wherever submissions are displayed in the application, which also closes the stored XSS path described above.
Variants to test
- Other fields on the same form. Submit the same anchor payload in the email and phone fields. A positive result is a clickable link rendered in the received email from any field, not just the Name field.
- Other email-generating features. Contact forms, newsletter sign-ups, support ticket acknowledgements and password-reset notifications all place user input into outbound mail. A positive result is any reflected markup in the delivered message.
- Attribute-context breakouts. Where the value lands inside an attribute such as a greeting or a subject line, try breaking out with
"and adding an event handler. A positive result is an attribute that is terminated early and a new attribute or tag that the mail client honours. - Stored rendering in the application. After submitting a payload, check any admin or staff view of form submissions. A positive result is the payload executing as script in a privileged session, which turns the finding into stored XSS.
- Mail client rendering differences. Send the same payload and open the message in more than one client. A positive result is a link that is clickable in one client and rendered as text in another, which tells you how broadly the issue can be exploited.
What happened, in plain words
A security learner spent months reading about how computers talk to each other and how attacks work in theory. Then they decided to stop reading and start looking for real problems. The first one they found was in a form that asks for your name, email and phone number so it can send you a free ebook. They typed a small piece of HTML into the Name field, and the platform sent them an email containing a working link to a website they controlled. The company accepted the report, paid a bounty and put them in a hall of fame.
This article walks through that story from the very beginning, explaining every term as it comes up. If you can use a browser, you can follow it.
The target: a boring form
The target was a lead-generation form on an e-commerce platform's knowledge base page. A knowledge base is the help section of a website: articles explaining how to use the product. A lead-generation form is a small box that asks for your details in exchange for something free, usually a download. Here it promised a free ebook by email.
The form collected three values: an email address, a phone number and a name.
The researcher chose this target on purpose. Login forms and search bars are tested by everyone, because they are the obvious places where something could go wrong. The boring form on a help page is not. The write-up does not name the platform or the specific page beyond describing it as an e-commerce platform's knowledge base.
Setup: what you need
The report describes no special tooling. No proxy, no fuzzer, no script is mentioned. A proxy is a program that sits between your browser and a website and lets you read and change every request; a fuzzer is a program that fires thousands of variations at a target automatically. None of that was used.
The stated requirements were:
- A real email address, the researcher's own.
- A random phone number.
- Access to the inbox, so you can see what the platform sends back.
Before this, the researcher had spent several months on Linux fundamentals, networking protocols, ARP, HTTP/HTTPS and Wi-Fi security. Linux is a free operating system; networking protocols are the agreed rules computers use to exchange data; ARP is the protocol that maps a local network address to a physical network card; HTTP and HTTPS are the rules a browser and a website use to talk, with HTTPS being the encrypted version; Wi-Fi security covers how wireless networks are protected. This was the first real bug they found.
Finding it: why the Name field
The reasoning was about what developers expect, not about how the application behaves. A Name field is assumed to be harmless, so it is rarely given the same encoding rigour as a password field. Encoding means converting special characters into a safe form so they are treated as text rather than as instructions. A password field is treated carefully because everyone knows passwords are sensitive. A first name is not.
The researcher decided to test two things: whether the value submitted in the Name field would appear in the email the platform sends, and whether it would appear as raw HTML. HTML is the language web pages and HTML emails are written in; a tag like <a> tells the reader to make a link. Raw means the characters arrive as instructions rather than as visible text.
Exploitation
Step 1: Submit an HTML payload in the Name field
The following value was entered into the Name field:
"><a href="https://evil.com">Click Me!</a>
Line by line, in plain words:
">closes whatever came before it. The"and>characters are typical of breaking out of an HTML attribute, though the report does not confirm the context. This is called breaking out of context: escaping the place the developer intended your text to sit.<a href="https://evil.com">opens a link tag.hrefis the address the link points to, and here it is a domain the researcher controlled.Click Me!is the visible text of the link.</a>closes the link tag.
The email field was filled with a real address belonging to the researcher and the phone field with a random number, then the form was submitted. A real address was used because the whole point is to receive the email and see what it contains.
Step 2: Inspect the resulting email
A minute later the researcher opened the inbox and found the message from the platform. The injected link had been rendered as a working, clickable hyperlink inside an email sent from the platform's own domain, pointing at the researcher's URL. Rendered means the email program drew it as a link rather than showing the characters as text. The report states plainly that there was no sanitisation and no encoding: raw HTML from the form field flowed into a real email delivered to a real inbox. Sanitisation means cleaning input by removing or neutralising anything dangerous.

The image sits at the start of the story, introducing the hunt before the target is described.
Step 3: Report and outcome
After validating the behaviour, the researcher wrote a simple report and included a video proof of concept. A proof of concept is a recording or set of steps that shows the problem actually happening, so the company can reproduce it. Three days later the response came back: the report was accepted, a bounty was paid and the researcher was added to the company's hall of fame. A bounty is a reward paid for a valid security report. The report does not state the bounty amount.

The screenshot is captioned "Small Bounty" and appears next to the description of the accepted report and reward.
Root cause
The Name field's value was inserted into the outbound email without HTML encoding. A template is the reusable skeleton of an email with blanks for values; server-side code is the program running on the company's machine that fills those blanks. The "> prefix in the payload suggests the value landed inside an HTML attribute or tag context in the email body, but the report does not confirm which. What the report does establish is the outcome: the value was neither sanitised nor encoded before being placed into the email.
The email came from the company's own legitimate domain and mail server, so spam filters and user suspicion are bypassed. Spam filters are programs that score incoming mail for signs of abuse; phishing is a fake message designed to make you click a link or hand over details. Input validation is checking that a value looks like what it should be; a WAF, or web application firewall, is a filter placed in front of a website; output encoding is converting characters safely at the moment they are written out.
Impact
The researcher sets out three consequences.
- Phishing from a trusted domain. The message originates from the company's own legitimate domain and mail server, so the usual signals a recipient uses to judge an email, including spam filters and suspicion of the sender, do not apply. A domain is the part of an address after the @ sign, or the name in a web address.
- Spear-phishing at scale. Spear-phishing is a targeted phishing message aimed at a particular person. An attacker does not need to spoof the company. Spoofing means pretending to be someone else. They fill in a public form and the company sends the malicious link to the victim's inbox on their behalf.
- A path to stored XSS. XSS, or cross-site scripting, is when an attacker's code runs inside someone else's browser session on a website. Stored means the malicious content is saved on the server and shown to whoever views it later. If the same submitted content is ever rendered inside the application, for example in an admin dashboard listing recent form submissions, the issue stops being HTML injection and becomes stored XSS. HTML injection is inserting markup that the page then displays; stored XSS is the same idea but with code that runs. The report presents this as a conditional escalation, not as something that was demonstrated.
Fix
The fix implied by the finding is to HTML-encode the Name value, and every other user-supplied value, at the point where it is written into the email template, so that characters such as <, > and " are emitted as entities rather than markup. An entity is a coded stand-in, for example < for a less-than sign, which the email program shows as a character instead of acting on it. The same encoding should be applied wherever submissions are displayed in the application, which also closes the stored XSS path described above.
Variants to test
- Other fields on the same form. Submit the same anchor payload in the email and phone fields. A positive result is a clickable link rendered in the received email from any field, not just the Name field.
- Other email-generating features. Contact forms, newsletter sign-ups, support ticket acknowledgements and password-reset notifications all place user input into outbound mail. A positive result is any reflected markup in the delivered message. Reflected here means your input comes back to you in the output.
- Attribute-context breakouts. Where the value lands inside an attribute such as a greeting or a subject line, try breaking out with
"and adding an event handler. An event handler is an attribute that tells the browser to run code when something happens, such as a click. A positive result is an attribute that is terminated early and a new attribute or tag that the mail client honours. - Stored rendering in the application. After submitting a payload, check any admin or staff view of form submissions. A positive result is the payload executing as script in a privileged session, which turns the finding into stored XSS. A session is the period a logged-in user is recognised by the site.
- Mail client rendering differences. Send the same payload and open the message in more than one client. A mail client is the program or website you read email in. A positive result is a link that is clickable in one client and rendered as text in another, which tells you how broadly the issue can be exploited.
Glossary
- ARP: the protocol that maps a local network address to a physical network card.
- Attribute: a setting written inside an HTML tag, such as the address a link points to.
- Bounty: a reward paid for a valid security report.
- Domain: the name of a website or the part of an email address after the @ sign.
- Encoding: converting special characters into a safe form so they are treated as text, not instructions.
- Entity: a coded stand-in for a character, such as
<for a less-than sign. - Event handler: an HTML attribute that runs code when something happens, such as a click.
- Fuzzer: a program that sends many variations of input to a target automatically.
- Hall of fame: a public list of people credited by a company for their reports.
- HTML: the language web pages and HTML emails are written in.
- HTML injection: inserting markup into a page or email that then displays it.
- HTTP/HTTPS: the rules a browser and a website use to exchange data, with HTTPS being the encrypted version.
- Input validation: checking that a value looks like what it should be.
- Knowledge base: the help section of a website with articles about the product.
- Lead-generation form: a small form that collects details in exchange for something free.
- Linux: a free operating system.
- Mail client: the program or website you read email in.
- Networking protocols: the agreed rules computers use to exchange data.
- Output encoding: converting characters safely at the moment they are written out.
- Phishing: a fake message designed to make you click a link or hand over details.
- Proof of concept: a recording or set of steps showing a problem actually happening.
- Proxy: a program between your browser and a website that lets you read and change requests.
- Rendered: drawn or displayed by a program, such as a link shown as a link.
- Sanitisation: cleaning input by removing or neutralising anything dangerous.
- Server-side code: the program running on the company's machine that builds the output.
- Session: the period a logged-in user is recognised by the site.
- Spear-phishing: a targeted phishing message aimed at a particular person.
- Spoofing: pretending to be someone else.
- Spam filter: a program that scores incoming mail for signs of abuse.
- Stored XSS: cross-site scripting where the malicious content is saved on the server and shown to later viewers.
- Template: a reusable skeleton of a message with blanks for values.
- WAF: a web application firewall, a filter placed in front of a website.
- Wi-Fi security: how wireless networks are protected.
- XSS: cross-site scripting, when an attacker's code runs inside someone else's browser session on a website.