Active Email Hyperlink Sent on riders.uber.com
A rider's first name was inserted into a confirmation email without sanitisation, so a name containing a URL became a clickable hyperlink. An attacker could set such a name and repeatedly trigger confirmation emails from the company's support address, sending recipients to a malicious site.
- Disclosed after 3 months
Summary by the researcher
Blog post: http://www.rohk.xyz/hackers-and-companies-responses/
The type of responses companies give to researchers is crucial to developing relationships. Check out the blog post I wrote which talks about the importance of proper responses.
The report
On riders.uber.com when the rider changes their information an email will be sent to their email informing them a change has been made on their rider account.
The rider can change their first name to anything within 45 characters and once the change has been made they can add an email to their account. But once they add the email, a confirmation email will be sent but will contain the riders first name. If the rider changed their first name to Rider. Visit www.yahoo.com for more info. the URL posted will have an active hyperlink.
`Hi Rider. Visit www.yahoo.com for more info.,
Please visit this link to confirm your email address:
https://riders.uber.com/confirm-email?email_token=
Love, Team Uber`
PoC:
This issue does reply on some type of social engineering
The attacker can purchase a short domain and put a message within 45 characters as their first name.
Once they have done that they can start adding and/or replacing emails a bunch of times to send mass emails and these emails will be coming from [email protected]
Once the person receiving the emails clicks on the link, they will be redirected to some malicious website.
Video: https://www.dropbox.com/s/84e7oftmcdmb4sw/emailhyperlink.mov?dl=0
Possible Fix: Do not allow links to be set as the riders names. Do not allow special characters (. , / \ etc.)
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
Likely the first name was inserted into the email body without escaping or filtering, so the mail client rendered any URL in it as a live link.
Impact
Recipients could be redirected to a malicious site via emails sent from the company's own support address, though the attack relies on social engineering and the recipient clicking.
What the attacker needed
A rider account; ability to change the first name; victim clicks the link
The fix
The name should be escaped or filtered so links and special characters cannot appear in the email, as the researcher suggested.
How it was found
- Change the rider's first name to a short message containing a web address.
- Add an email address to the account so a confirmation email is sent.
- Repeat adding or replacing emails to send many confirmation messages.
- The recipient sees the name rendered as a clickable link and may follow it.
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.
When you sign up, a website often sends you an email to confirm your address, and it may greet you by your name. Here the site put whatever the user typed as their name straight into that email, and the email program turned the web address in it into a clickable link. Because the email came from the company's real address, people were more likely to trust and click it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.