open redirect sends authenticity_token to any website or (ip address)
The mobile Twitter site accepted a double-slash path that was treated as a host, so a crafted link redirected the browser to an attacker-chosen IP address. Because the form's authenticity token was submitted with the request, the token could be sent to that external host.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 4 days
Hi, URL: https://mobile.twitter.com//example/messages (there is double slash before "example" word) when you click "send" after writing a message the authenticity_token will send to https://example this URL doesn't allow any dots in it, so i can not write //example.com but when i write a number it will redirect me to an ip, EG: https://mobile.twitter.com//0/messages
0.0.0.0 when i write a longer number it will redirect me to another ip i fount this website that can change server or a website to ip https://www.site24x7.com/find-ip-address-of-web-site.html then i fount this website that can change any ip to a single number (without dots) http://www.smartconversion.com/unit_conversion/IP_Address_Converter.aspx so i'll change http://example.com to an ip by the first website http://example.com = 93.184.216.34 now i'll change 93.184.216.34 to a single number without dots by the second website 93.184.216.34 = 1572395042 now to redirect from twitter to example.com https://mobile.twitter.com//1572395042/messages Thank you!
Attachments

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 application treated the path segment after a double slash as a host without validating it, allowing an open redirect that carried the form token.
Impact
An attacker could cause a victim's authenticity token to be sent to an external host.
What the attacker needed
Victim clicks a crafted link; victim submits a message form
How it was found
- Open the mobile Twitter messages URL with a double slash before a number.
- Write a message and click send.
- Observe that the authenticity token is sent to the IP address represented by the number.
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 web page sometimes builds links from parts of the address you type. Here, a double slash made the site think the next part was a different website. When the user sent a message, a secret form value (the authenticity token, used to stop forged requests) went to that other site instead of Twitter.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.