Skip to content
XSS Disclosed report Beginner

nextcloud.com: Content Injection Custom 404 Error

The custom 404 error page reflected the requested URL path, allowing an attacker to craft a link that displayed arbitrary text, such as a message claiming the site had moved to an attacker-controlled domain. An attacker could use this to spoof content and potentially trick users into visiting a malicious site.

geekboy Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in under an hour
  • Disclosed after 1 hour

Hello Team ,

Request: if u think the reported issues have acceptable risk and u r not going to make changes then kindly request to mark as Informative .

####Description :

This report is about how an attacker is able to spoof the content of 404 page and can add thr own Text in way that the Current Website is moved to someone new URL which is Attackers website , yet its not that much effective to make this attacker successful but still this need to fix .

####Vulnerable URL : https://nextcloud.com

####POC URL : https://nextcloud.com/has%2f%20been%20changed%20to%20https://www.ATTACKER.COM.%20so%20please%20visit%20https://www.ATTACKER.COM%20as%20your%20requested%20link

####Reference : https://www.owasp.org/index.php/Content_Spoofing

####POC : http://i.imgur.com/hQuzqvn.jpg

####Mediation :

  • User Predefined 404 page , with fixed error content !

Please let me know if any more info needed !

Regard's Geekboy :)

The original report as published on HackerOne, by geekboy. 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 custom 404 page reflected the requested URL path without encoding or validation, allowing injected text to appear as page content.

Impact

An attacker could spoof the content of the 404 page to display a message redirecting users to an attacker-controlled site, though the reporter notes it is not very effective.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Craft a URL containing text that instructs the user to visit an attacker-controlled site.
  2. Visit the crafted URL on the target domain.
  3. Observe that the 404 page displays the injected text as part of its content.

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 does not exist, the site often shows a '404 not found' page. Here, that page copied part of the address you typed and displayed it as text. An attacker could put a fake message in the address so the page appears to say the site has moved elsewhere, which might fool someone into clicking a bad link.

What is XSS?

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

More by geekboy

View all

11 more disclosed reports, best first.

More from Nextcloud

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.