Skip to content
XSS Disclosed report Beginner

Text injection can be used in phishing 404 page and should not include attacker text

The 404 error page reflects attacker-controlled text from the requested URL path, allowing an attacker to display arbitrary messages. This could be used in phishing to make the page appear legitimate.

kanwar Follow

Originally disclosed on HackerOne

  • Fixed in 43 hours
  • Disclosed after 3 days

Hello i want to report a text injection and a missconfiguration of the 404 page which can be used in phishing

the bug exists at :

http://veris.in/test/%2f../It%20has%20been%20changed%20by%20a%20new%20one%20https://www.crowdcurity.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.crowdcurity.com so go to the new one since this one was not found on this server."

Fix : just use a 404 page that don't include attacker text just as : hackerone do (a 404 page that don't include any external text

Hope you fix it

Thanks, Kanwar

Attachments

Veris.PNG
Veris.PNG From the original on HackerOne

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

Impact

An attacker could use the reflected text to make the 404 page display a phishing message.

What the attacker needed

Victim clicks a crafted link

The fix

The 404 page should not include any attacker-controlled text from the request.

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 a web server cannot find a page, it shows a 404 error. Here, the server copied part of the web address the visitor typed into the error message. An attacker could craft a link that makes the error page show a fake message, tricking people into visiting another site.

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 Veris

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.