Skip to content
Business logic Disclosed report Beginner

@wearehackerone.com is vulnerable to namespace attacks due to hackerone.com not being RFC2142 compliant.

HackerOne's email forwarding system for @wearehackerone.com allowed users to register usernames that correspond to reserved RFC2142 email addresses, such as 'trouble'. An attacker could thus control these addresses, which may be used for trusted communications or SSL certificate issuance.

thefrog Follow

Originally disclosed on HackerOne

Medium 5.8 View original
  • Triaged in 7 days
  • Fixed in 56 days
  • Disclosed after 4 months

Hola amigos,

First off, I know RFCs are annoying. Second of all, namespace attacks are a b*tch.

With that out of the way, here is an Inti-bug that was discovered as a result of reading RFC2142 very carefully.

Brief summary of RFC2142

RFC2142 defines a standard set of email addresses that cover certain roles and functions. For example, you might be familiar with the security@ address. This was originally defined in section 4 of RFC2142: https://tools.ietf.org/html/rfc2142#section-4.

MAILBOX        AREA                USAGE
-----------    ----------------    ---------------------------
ABUSE          Customer Relations  Inappropriate public behaviour
NOC            Network Operations  Network infrastructure
SECURITY       Network Security    Security bulletins or queries

Ze Bug

The way the new @wearehackerone.com email forwarding system works, is that an address is allocated for your HackerOne account based on your username (<your-h1-handle>@wearehackerone.com). So hackerone.com/foobar turns into [email protected]. With this in mind, I decided to enumerate all the various email addresses defined in RFC2142 and determine which ones can be registered ultimately resulting in me controlling what should be a reserved email address.

In some cases you do actually prevent people from claiming the handle, such as with postmaster.

███

Unfortunately though, after a bit of probing I noticed that not all RFC2142 addresses were blocked. I am now the proud owner of [email protected]. Please feel free to shoot me an email and I will respond back to demonstrate that this address is under my control.

How to fix this issue

In order to fix this issue, I advise you to add the following usernames to your exclusion list so that one cannot hijack these important email addresses.

abuse
admin
administrator
hostmaster
info
is
it
list
list-request
majordomo
marketing
mis
news
postmaster
root
sales
security
ssl-admin
ssladmin
ssladministrator
sslwebmaster
support
sysadmin
trouble
usenet
uucp
webmaster

Have fun fixing this issue and feel free to email me at [email protected] if you are having any trouble reproducing this issue. ;)

- @thefrog

Impact

In some cases, these reserved addresses are used to generate SSL certificates since CAs assume that these are all trusted addresses.

The original report as published on HackerOne, by thefrog. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

The system did not block usernames that correspond to reserved RFC2142 email addresses, allowing users to claim them.

Impact

An attacker could control reserved email addresses, which may be used for trusted communications or SSL certificate issuance.

What the attacker needed

A HackerOne account

The fix

The issue should be fixed by adding the listed reserved usernames to an exclusion list to prevent them from being registered.

How it was found

  1. Enumerate RFC2142 email addresses.
  2. Attempt to register each as a username on HackerOne.
  3. Observe that some, like 'trouble', are not blocked and can be claimed.

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 report has not been written yet. The Original tab links to the source.

A service let a user claim a username matching a reserved address, giving control of that email. Such addresses may be used for trusted messages or certificate generation.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from HackerOne

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.