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.
- 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
####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 :)
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
- Craft a URL containing text that instructs the user to visit an attacker-controlled site.
- Visit the crafted URL on the target domain.
- 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.