Email spoofing
The reporter used a free email spoofing tool to send an email that appeared to come from one of the program's addresses, and it was delivered successfully. They claim an attacker could send fake bounty payment emails to hackers, who might then try to claim the money, causing reputation loss.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 6 days
- Paid in 6 days
- Disclosed after 17 months
There are few email spoofing tool is available free.one them is
when I tried to send a email from ███████ to my email ,it was successful but when i tried to send the another from ██████ , i did not receive any email.Hence, there might be some configuration missing in your mail servers (i am not much aware of technical details associated with this issue but would love to know how this is happening),Arice can explain this to me much better.
This can be dangerous ,as attacker can send some fake bounty amount to some hacker,then hacker will claim back for the money (a sample mail attached),can lead to reputation loss :)
What the report shows
The report concerns email spoofing. The researcher points to a free email spoofing tool, emkei.cz, as the means of sending mail that appears to come from the target's domain:
http://emkei.cz/
Using that tool, the researcher sent a message to their own email address, and it arrived. That attempt succeeded. A second attempt, sent from a different address, did not arrive at all. The researcher took that inconsistency as a sign that something in the target's mail server configuration was missing, and said plainly that they were not familiar with the technical details behind the issue.
The report frames the risk around a specific abuse case: an attacker sends a fake notification of a bounty amount to a hacker, and the hacker later claims the money back. A sample mail was attached to illustrate this. The researcher describes the consequence as reputation loss.
The report gives no severity rating, no CVSS score, no bounty figure and no remediation details. It is classified under violation of secure design principles and was disclosed on 28 May 2015.
Root cause
The report does not analyse the cause. It only observes that spoofed mail from one address was delivered while spoofed mail from another was not, and infers that some mail server configuration is missing. In general terms, the likely cause of this class of issue is that the receiving mail infrastructure accepts messages whose envelope or header sender has not been authenticated against the sending domain, so a message can carry a From address belonging to a domain the sender does not control.
Impact
As the report describes it, an attacker can send mail that appears to come from another address. The concrete scenario given is a forged bounty notification sent to a hacker, followed by a claim for the money, which the researcher says can lead to reputation loss. The report does not demonstrate any further consequence, and the second attempt did not arrive.
How this kind of bug works
SMTP was designed without a built-in guarantee that the domain in the From header belongs to the party sending the message. A sending host can therefore put almost any address in the envelope sender and in the From header, and a receiving server that does nothing to check the sending domain will deliver it.
Three mechanisms exist to close that gap:
- SPF publishes, in DNS, which hosts are allowed to send mail for a domain. The receiving server checks the connecting IP against that list.
- DKIM attaches a cryptographic signature to the message, keyed to a DNS record for the signing domain, so the receiver can verify the message was signed by a party holding the private key.
- DMARC ties the two together with an alignment rule on the From header and tells receivers what to do when a message fails, either quarantine or reject.
Spoofing succeeds when a domain publishes no policy, publishes a weak policy, or when the receiving side does not enforce the policy it finds. A domain with SPF set to a soft fail and no DMARC enforcement will still see forged mail land in inboxes. Note that SPF alone does not protect the visible From header, because it authenticates the envelope sender, which is why DMARC alignment matters.
How to test for it
Testing is about whether a message with a forged sender reaches a mailbox, and whether the receiving infrastructure records that it should not have.
- Identify the domain to test, normally the program's primary mail domain, and check its published policy first: query the domain's TXT records for an SPF record, query the DMARC record under
_dmarc, and look for a DKIM selector if one is known. A missing or monitoring-only DMARC policy is a signal worth pursuing. - Send a test message to a mailbox you control, using an external relay or a test service, with the From header set to an address at the target domain. Keep the body benign and identifiable as a test.
- Inspect the received message headers. A positive result is delivery to the inbox with the forged From intact, together with authentication results showing the message failed SPF and DKIM alignment and was not rejected or quarantined.
- Repeat from a second sending address or relay, because, as this report shows, results can differ between attempts.
Common false positives: the message landing in spam rather than the inbox still indicates a policy gap but weakens the claim; a message that passes because the target legitimately authorises the sending relay is not spoofing; and a display-name spoof, where only the friendly name matches while the address is different, is a much weaker finding than an aligned From address. Always confirm the actual header values rather than trusting how the mail client renders the sender.
How it is fixed
The standard fix is mail authentication policy on the receiving side and on the domain owner's side:
- Publish an SPF record that lists only authorised sending hosts, ending in a hard fail for everything else.
- Sign outgoing mail with DKIM and publish the corresponding public key in DNS.
- Publish a DMARC record with an enforcing policy, starting in monitoring mode to measure legitimate traffic, then moving to quarantine and reject.
- On the receiving infrastructure, enforce the results of these checks rather than merely recording them in headers.
Hunting notes
This bug class hides wherever an organisation runs its own mail domain and has not finished rolling out DMARC enforcement: older or secondary domains, regional domains, marketing subdomains and domains acquired through mergers are frequent gaps. Recon signals include a missing _dmarc record, a DMARC record set to none, SPF records that end in a soft fail, and authentication results in received mail showing failures that were not acted on.
To make a report land, show the full received headers of a message that reached the inbox with a forged From address, state clearly which policy was missing or unenforced, and tie it to a plausible abuse path for that specific program, such as forged notifications or password reset mail. Keep the demonstration minimal and avoid sending forged mail to anyone other than your own mailbox or an address the program has authorised.
What happened, in plain words
Email has a feature that most people never think about: the "From" address you see in your inbox is just text that the sender writes into the message. Nothing in the basic email system checks that the person sending the message actually owns that address. This is called email spoofing, and it is like writing someone else's return address on the back of an envelope: the post office does not verify it, so the letter arrives looking like it came from that person.
The researcher in this report used a free website, emkei.cz, that lets anyone send an email with any From address they choose:
http://emkei.cz/
They sent a message to their own mailbox using a spoofed From address. That message arrived. They then tried again from a different address, and this time nothing arrived. The researcher took this inconsistency as a sign that something in the target's mail server configuration was missing, and said plainly that they were not familiar with the technical details behind the issue.
The report frames the danger around a specific abuse case: an attacker sends a fake notification of a bounty amount to a hacker, and the hacker later claims the money back. A sample mail was attached to illustrate this. The researcher describes the consequence as reputation loss.
The report gives no severity rating, no CVSS score, no bounty figure and no remediation details. It is classified under violation of secure design principles and was disclosed on 28 May 2015.
In general, how this kind of bug works
SMTP is the protocol that moves email between servers. It was designed without a built-in guarantee that the domain in the From header belongs to the party sending the message. A sending host can therefore put almost any address in the envelope sender and in the From header, and a receiving server that does nothing to check the sending domain will deliver it.
Three mechanisms exist to close that gap:
- SPF publishes, in DNS, which hosts are allowed to send mail for a domain. The receiving server checks the connecting IP against that list. Think of it as a guest list at a door: only named hosts get in.
- DKIM attaches a cryptographic signature to the message, keyed to a DNS record for the signing domain, so the receiver can verify the message was signed by a party holding the private key. It is like a wax seal that only the real sender can produce.
- DMARC ties the two together with an alignment rule on the From header and tells receivers what to do when a message fails, either quarantine or reject. It is the instruction sheet that says what to do with a letter whose seal does not match.
Spoofing succeeds when a domain publishes no policy, publishes a weak policy, or when the receiving side does not enforce the policy it finds. A domain with SPF set to a soft fail and no DMARC enforcement will still see forged mail land in inboxes. Note that SPF alone does not protect the visible From header, because it authenticates the envelope sender, which is why DMARC alignment matters.
In general, how to test for it
Testing is about whether a message with a forged sender reaches a mailbox, and whether the receiving infrastructure records that it should not have.
- Identify the domain to test, normally the program's primary mail domain, and check its published policy first: query the domain's TXT records for an SPF record, query the DMARC record under
_dmarc, and look for a DKIM selector if one is known. A missing or monitoring-only DMARC policy is a signal worth pursuing. - Send a test message to a mailbox you control, using an external relay or a test service, with the From header set to an address at the target domain. Keep the body benign and identifiable as a test.
- Inspect the received message headers. A positive result is delivery to the inbox with the forged From intact, together with authentication results showing the message failed SPF and DKIM alignment and was not rejected or quarantined.
- Repeat from a second sending address or relay, because, as this report shows, results can differ between attempts.
Common false positives: the message landing in spam rather than the inbox still indicates a policy gap but weakens the claim; a message that passes because the target legitimately authorises the sending relay is not spoofing; and a display-name spoof, where only the friendly name matches while the address is different, is a much weaker finding than an aligned From address. Always confirm the actual header values rather than trusting how the mail client renders the sender.
In general, how it is fixed
The standard fix is mail authentication policy on the receiving side and on the domain owner's side:
- Publish an SPF record that lists only authorised sending hosts, ending in a hard fail for everything else.
- Sign outgoing mail with DKIM and publish the corresponding public key in DNS.
- Publish a DMARC record with an enforcing policy, starting in monitoring mode to measure legitimate traffic, then moving to quarantine and reject.
- On the receiving infrastructure, enforce the results of these checks rather than merely recording them in headers.
In general, where to look
This bug class hides wherever an organisation runs its own mail domain and has not finished rolling out DMARC enforcement: older or secondary domains, regional domains, marketing subdomains and domains acquired through mergers are frequent gaps. Recon signals include a missing _dmarc record, a DMARC record set to none, SPF records that end in a soft fail, and authentication results in received mail showing failures that were not acted on.
To make a report land, show the full received headers of a message that reached the inbox with a forged From address, state clearly which policy was missing or unenforced, and tie it to a plausible abuse path for that specific program, such as forged notifications or password reset mail. Keep the demonstration minimal and avoid sending forged mail to anyone other than your own mailbox or an address the program has authorised.
Glossary
- Email spoofing: sending a message with a From address that belongs to someone else, so it appears to come from them.
- SMTP: the protocol that moves email between servers.
- From header: the line in an email that shows the sender's address to the recipient.
- Envelope sender: the address used in the SMTP conversation itself, which can differ from the From header.
- SPF: a DNS record listing which hosts are allowed to send mail for a domain.
- DKIM: a cryptographic signature attached to a message, keyed to a DNS record, so the receiver can verify who signed it.
- DMARC: a policy that ties SPF and DKIM to the From header and tells receivers what to do when a message fails.
- DNS: the system that maps domain names to records, including mail policy records.
- TXT record: a DNS record type used to publish SPF and other text-based policies.
_dmarc: the DNS name under which a domain's DMARC record is published.- DKIM selector: a label that identifies which DKIM key to look up in DNS.
- Alignment: the rule that the domain authenticated by SPF or DKIM must match the domain in the From header.
- Soft fail: an SPF result that suggests a message is suspicious but does not reject it.
- Hard fail: an SPF result that tells the receiver to reject the message.
- Quarantine: a DMARC action that sends a failing message to spam rather than the inbox.
- Reject: a DMARC action that refuses a failing message outright.
- False positive: a test result that looks like a finding but is not actually a vulnerability.
- Display-name spoof: showing a familiar name in the sender field while the actual address is different.
- CVSS: a scoring system for rating the severity of a vulnerability.