Arbitrary File Read in one of the largest CRMs
A hidden JSON parameter was vulnerable to path traversal, allowing an attacker to read arbitrary files on the server. The author found the bug in multiple locations and was paid for each finding.
Published on medium.com
Without going into too much detail as this was a private bug bounty program, I will explain how I managed to read arbitrary files on one of the largest Customer Relationship Managers (CRM).
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application passed a user-controlled value from a JSON parameter directly to a file-reading function without validating or sanitising it.
What the attacker needed
Access to the application; ability to send crafted requests
How it was found
- Find the hidden parameter inside a JSON-encoded request.
- Send the request to Repeater and Intruder to test for file read.
- Try different payloads, encodings, and escaping characters until one works.
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 write-up has not been written yet. The Original tab links to the source.
A path traversal bug lets an attacker trick a program into opening files it should not, by using sequences like '../' to climb out of the intended folder. Here, a hidden parameter inside a JSON blob was not checked, so the attacker could read any file on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.