With Great Access Comes Great Responsibility
A monitoring app for an online exam embedded AWS credentials that allowed listing the entire S3 bucket, reading other candidates' screenshots, and modifying or deleting files. An attacker with the app could access private data from all candidates.
medium.com
Published on medium.com
Access control is the most boring topic in tech, right up until one bad setting leaks thousands of people’s private data. AWS S3 makes storage effortless, and that ease can quietly hide risk.
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 app was given overly broad AWS credentials (full bucket access) instead of scoped, temporary tokens limited to a single session path.
Impact
An attacker could list the entire bucket, read other candidates' screenshots, and modify or delete files, exposing private data such as names, emails, chats, and desktop contents.
What the attacker needed
Install the exam monitoring app; inspect the app binary for credentials
The fix
The backend should verify each exam session and issue a scoped, temporary token that can write to one assigned path only; the bucket should block public access, use per-candidate paths with rules preventing cross-reading, and log with alerts for unusual activity.
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.
An app used during an online exam stored its login keys inside the app itself. Those keys were too powerful: they let anyone who looked inside the app see and change everyone else's exam screenshots. The fix is to give the app only the tiny bit of access it needs, not the keys to the whole storage system.
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.