Skip to content
Misconfiguration Write-up Beginner

Besides bXSS

A contact form submitted a POST request to an email-sending API endpoint with user-controlled from, to, subject and body parameters. An attacker could use the company's SMTP server to send arbitrary emails to anyone, spoofing any address under the target domain and controlling the subject and HTML content.

medium.com

Published on medium.com

Have you seen someone sharing a vulnerability other than Blind XSS that was found in a contact form? — TBH I have never encountered such a case. And most of us haven’t.

Iam_Wander, on medium.com

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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the email-sending API trusted client-supplied parameters for sender address, recipient, subject and body without server-side validation or authorisation.

Impact

An attacker could send unlimited emails to anyone using the company's SMTP server, spoofing any sender address under the target domain and controlling the subject and HTML content; the author did not test whether the HTML content allowed blind XSS.

What the attacker needed

Access to the contact form; ability to intercept and modify requests

How it was found

  1. Turn on Burp intercept and submit the contact form.
  2. Observe the POST request to the email-sending endpoint with from, to, subject and email parameters.
  3. Modify the parameters to send arbitrary emails to any recipient from any address under the target domain.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A contact form usually just sends a message to the company. Here, the form talked directly to an email-sending service and let the person filling it in choose who the email came from, who it went to, and what it said. That means anyone could use the company's mail system to send fake emails that looked like they came from the company.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.