prevent %2f spoofed URLs in profile statement
A URL containing an encoded slash before an @ symbol made a link appear to point to gratipay.com while actually navigating to google.com. An attacker could use this to redirect users to malicious sites through social engineering.
Originally disclosed on HackerOne
- Disclosed after 16 months
https://gratipay.com%[email protected] on clicking on this url this link will take to the google.com or any other malicious url. On seeing it will look like the link will take to the gratipay but onclicking the url it will redirect to the malicious site.Attacker with the help social engg. techniques will able to redirect the user to any Ransomware site for they nefarious purpose
POC:- Click on the link it will redirect to google.com
Fix:- The hostname must end in %2f, which gets URL-decoded to /. This ensures that the browser only sends the request to the intended host.
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 did not properly validate or normalise URLs, allowing an encoded slash to alter how the browser interpreted the hostname.
Impact
An attacker could use social engineering to redirect users to malicious sites, potentially leading to ransomware infections.
What the attacker needed
Victim clicks a crafted link
How it was found
- Create a link with the format gratipay.com%[redacted]
- Click the link
- Observe that the browser navigates to google.com instead of gratipay.com
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 link can be crafted so it looks like it goes to one site but actually goes to another. This tricks people into visiting harmful pages.
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.