Skip to content
UI spoofing Disclosed report Beginner

Content spoofing on error pages or text injection

The 404 error page reflects the requested URL path as plain text, so an attacker can craft a link that makes the page display arbitrary text. This could be used to spoof content and mislead users, though only plain text is possible.

drosofraymaybe Follow

Originally disclosed on HackerOne

  • Disclosed after 4 days

###Poc:

https://www.cfptime.org/%20is%20not%20available%20anymore%20,%20pls%20go%20to%20WWW.EVIL.COM%20because%20this%20site.

###Steps to reproduce:

1: Just browse this target on any browser 2: Target: http://www.cfptime.org/ 3: add any content after For example: this is not available anymore pls check WWW.EVIL.COM because this site 4: Now browser reflect the content or text .

###Fix : Use Predefined 404 page , with fixed error content It can be fixed by adding the following to the web server config: ErrorDocument 404 "File not found."

Impact

Application allows users to inject any content on the 404 not found webpage The issue is not critical , as it is only possible to inject plain text, no links or active content, to the error page.

Attachments

Capture.PNG
Capture.PNG From the original on HackerOne

The original report as published on HackerOne, by drosofraymaybe. 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 error page reflects the requested URL path without sanitisation or encoding, allowing text injection.

Impact

An attacker could inject plain text into the 404 page to spoof content, but the issue is not critical because only plain text is possible, with no links or active content.

What the attacker needed

Victim clicks a crafted link

The fix

The error page should use predefined, fixed content instead of reflecting the URL, for example by configuring a static 404 document.

How it was found

  1. Browse to the target site in any browser.
  2. Add arbitrary text after the domain in the URL.
  3. Observe that the browser displays the injected text on the error page.

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 website cannot find a page, it shows an error page. This site takes the text from the web address and puts it directly on that error page. An attacker can make a link that shows a fake message, like telling people to go to another site, but they cannot add clickable links or run code.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More from CFP Time

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.