Path traversal leading to limited CSRF on GET requests on two endpoints
Two endpoints on HackerOne were vulnerable to a path traversal that caused a GET request to an arbitrary path, but the issue was only theoretical because the attacker could not exploit it directly. The reporter notes that if a state-changing endpoint or open redirect over GET required an additional authorization or CSRF header, the issue could become interesting.
- Triaged in 1 hour
- Fixed in 27 days
- Paid in 3 days
- Disclosed after 15 months
Summary by the researcher
The issue could not be exploited directly, and therefore is a theoretical issue. It was reported after having a convo with @jobert. I'm not sure, but the request probably added a CSRF token (or equivalent) header, which made it interesting for further exploitation. For example, if there's a state-changing endpoint (or open redirect) over GET somewhere, which requires (or has) an additional authorization/CSRF header, this issue could become interesting.
I hope to make it clear with this summary since the impact I described in the report is describing a totally different issue.
The report
Hi team!
I've found more endpoints which are vulnerable to the limited CSRF stated in report https://hackerone.com/reports/99708. The endpoints cause a CSRF over GET requests, however, I've been unable to exploit it.
The following endpoints are vulnerable to this:
Proof of Concept
- Visit https://hackerone.com/users/confirmation?confirmation_token=z2-aaa&invitation_token=/../../test or https://hackerone.com/users/password/new?invitation_token=/../../test (the two endpoints which are still vulnerable)
- Inspect the network traffic via developer tools or an intercepting proxy, and notice a request being made to https://hackerone.com/test.json.
We can get HackerOne to authorize Slack within a team (as attempted to do so in report 99708), however due to the state parameter it will be hard to exploit that one unless an attacker is able to get the state parameter from the victim.
Impact
As mentioned above, it will have a big impact on HackerOne if an attacker is able to get the state parameter of the victim to, as it would lead to reports being leaked.
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 application used a user-supplied parameter to build a request path without validating or normalising it, allowing traversal sequences to change the requested endpoint.
Impact
The issue could not be exploited directly and is theoretical; it could become interesting only if a state-changing endpoint or open redirect over GET required an additional authorization or CSRF header, and the reporter notes that exploiting the Slack authorization flow would be hard without the victim's state parameter.
What the attacker needed
Victim visits a crafted link
How it was found
- Visit one of the two vulnerable endpoints with a crafted invitation_token parameter containing traversal sequences.
- Inspect network traffic in developer tools or an intercepting proxy.
- Observe a request being made to a different path on the same host.
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 path traversal is when a web address is manipulated with sequences like '../' to make the server request a different path than intended. Here, two HackerOne pages accepted a crafted parameter that made the browser request a different URL, but the reporter could not turn that into a real attack. The report is mostly a note that the flaw exists and might matter if combined with another feature.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.