How I Paid For My Holiday With Bug Bounty
The author found four vulnerabilities in a job application site: a stored XSS that fired when an admin reviewed a CV, a broken access control allowing submission of a CV to another user's job application, an IDOR that exposed CV contents via a UUID parameter, and a file upload bypass using magic bytes that led to a reverse shell. An attacker could steal admin cookies, tamper with job applications, read other users' CVs, and execute code on the server.
Published on web.archive.org
Today I am detailing how I was able to afford a holiday utilising Bug Bounty only.
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 multiple root causes: insufficient output encoding for the XSS, missing authorisation checks on the CV submission and download endpoints, and inadequate file type validation that relied on magic bytes and extensions.
Impact
An attacker could steal admin cookies via XSS, submit their own CV to other users' job applications (invalidating them), read other users' CVs if submitted in plaintext, and upload a reverse shell to execute code on the server.
What the attacker needed
A user account on the site; victim (admin) reviews the CV; ability to intercept and modify requests
How it was found
- Insert an IFrame with an onload event handler into the profile website links field.
- Bypass the WAF by using an event handler that returns 200 OK.
- Walk through the CV upload and submission process as a user.
- Click 'Review CV' to trigger the stored XSS.
- Intercept the CV submission request and change the job application ID to another user's.
- Download a CV by modifying the UUID parameter to another user's UUID.
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.
This report describes several common web security flaws. Stored XSS lets an attacker save malicious code (like JavaScript) on a website, which then runs in other users' browsers. Broken access control means the site fails to check if you are allowed to perform an action, so you can do things like submit your CV to someone else's job application. An IDOR is when changing an identifier in a request lets you access someone else's data. A file upload bypass tricks the site into accepting a dangerous file by disguising it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.