Bypassing a 403 Using Path Manipulation in Calendly Assets
An asset on Calendly's CDN returned a 403 when requested directly, but inserting a non-standard path sequence into the URL caused the server to return the same asset with a 200. An attacker could use this path manipulation to reach restricted assets and enumerate non-public resources.
While testing Calendly, I identified an inconsistency in how asset requests were handled that allowed a restricted resource to be accessed using a modified path.
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 server normalises the request path after, or inconsistently with, the access-control check, so an alternative path representation is evaluated differently by the two stages.
Impact
Access controls on restricted assets could be bypassed, potentially allowing other non-public resources to be accessed and enumerated, though the text only demonstrates this on a single CDN asset.
What the attacker needed
Knowledge of the restricted asset path; no authentication needed
How it was found
- Request the CDN asset directly and observe the 403 Forbidden response.
- Modify the URL by inserting a non-standard path sequence before the asset path.
- Send the modified request and observe the asset returned with a 200 OK response.
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 web server decides whether you may see a file by looking at the address you request. Here the server checked the address one way when blocking it, but understood the address differently when actually serving the file, so a slightly odd address slipped past the block. The result is that a file meant to be private could be fetched anyway.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.