Skip to content
XSS Disclosed report Beginner

Report Regarding Security Vulnerability

The 404 error page reflected text from the requested URL path, allowing an attacker to inject arbitrary text and a link into the page. An attacker could craft a URL that displays misleading content, such as a link to a malicious site, to users who visit it.

srkfan Follow

Originally disclosed on HackerOne

  • Disclosed after 6.2 years

Hello Team,

i want to report a text injection and a misconfiguration of the 404 page

the bug exists at :

https://www.torproject.org/test/%2f../It%20has%20been%20changed%20by%20a%20new%20one%20https://www.Attacker.com%20so%20go%20to%20the%20new%20one%20since%20this%20one

as you can see attacker text is included "It has been changed by a new one https://www.attacker.com so go to the new one since this one was not found on this server."

(Screenshot Attached)

Fix : just use a 404 page that don't include attacker text just as :a 404 page that don't include any external text hope you fix it

thanks

Attachments

tor.png
tor.png From the original on HackerOne

The original report as published on HackerOne, by srkfan. 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

Likely the 404 page reflects the requested URL path without sanitising or encoding it.

Impact

An attacker could display misleading text and a link to a malicious site on the legitimate website's 404 page, potentially tricking users.

What the attacker needed

Victim clicks a crafted link

The fix

The 404 page should be changed to not include any text from the requested URL.

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 visit a web address that doesn't exist, the server usually shows a '404 not found' page. Here, the server copied part of the web address you typed into that page without cleaning it. So an attacker could make a link that shows their own message and a link to their site on the real website's page.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Tor

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.