Another Day Another Idor Vulnerability 5000 Reddit Bug Bounty
The Reddit moderation log endpoint did not verify that the requesting user was a moderator of the specified subreddit. An attacker could access sensitive moderator actions and messages from any subreddit by changing the subreddit name in the request.
IDOR, or insecure direct object reference, is a common yet insecure practice of referring to objects. By “insecure”, this simply means that it is easy to figure out what the pattern of how objects are named.
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
Impact
Any account could access sensitive messages and moderator actions of any subreddit, potentially allowing assignment of arbitrary users as moderators or taking moderator actions without permissions.
What the attacker needed
A Reddit account; knowledge of a subreddit name
The fix
The bug was fixed according to the text.
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 IDOR (Insecure Direct Object Reference) happens when a website uses a predictable name or number to refer to something, like a subreddit name, and doesn't check if you're allowed to see it. Here, anyone could ask for the moderation log of any subreddit just by knowing its name, even without being a moderator. This let attackers read private moderation actions and messages.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.