Full path disclosure when CSRF validation failed
When a request failed CSRF validation, the application returned an error that disclosed the full server file path. An attacker could use this path and script information to learn about the server's file layout.
- Disclosed after under an hour
Hi again ,
There are Full path disclosure in airship when the CSRF validation failed . It will show the full path with files this is can be useful for an attacker if he need some information about files and path ,identified the script and path .
PoC :
Host: bridge.cspr.ng User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: https://bridge.cspr.ng/author/edit/7 Cookie: __cfduid=any; PHPSESSID=any; cf_clearance=any-any-any Connection: keep-alive Content-Type: application/x-www-form-urlencoded Content-Length: 199 If-Modified-Since: *
_CSRF_TOKEN=&name=%3Cxss%3E&byline=&format=Rich+Text&biography=%3Ch2%3Exxxxxx%3Cbr%3E%3C%2Fh2%3E&_wysihtml5_mode=1&save_btn=sav

The CSRF validation error should not show other info about the files path .
Thanks
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 CSRF failure handler surfaces a raw error or exception that includes the server-side file path instead of a generic message.
Impact
The error response could reveal server file paths and script names, which may aid an attacker in reconnaissance.
What the attacker needed
Ability to submit a form request; CSRF token left empty
How it was found
- Send a form submission request to the author edit endpoint with an empty CSRF token value.
- Observe the CSRF validation failure response.
- Read the full file path disclosed in the error output.
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.
A CSRF token is a secret value a website expects with each form submission to prove the request came from its own pages. When that check failed here, the site's error message accidentally revealed where files live on the server, which helps an attacker plan further attacks.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.