How a Failed CSRF Escalated to an Unauthenticated Mass Assignment (7.3 Severity)
The API's OPTIONS response leaked internal model fields, and the report creation endpoint accepted these privileged fields from unauthenticated users. An attacker could set moderation actions, spoof IP addresses, and manipulate notification flags without authentication.
target.com is a massive media platform serving millions of users daily. Content streaming, user-generated media, and community interactions are the core pillars of its infrastructure.
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 API serializer automatically bound all JSON fields to the internal model without whitelisting, allowing unauthenticated users to set privileged attributes.
Impact
An unauthenticated attacker could spoof IP addresses in reports, potentially poison moderation queues by setting takedown actions, and manipulate notification flags, though the text does not confirm actual content removal.
What the attacker needed
No authentication required; knowledge of the API endpoint
The fix
The API should explicitly whitelist read-only fields in serializers, resolve client IPs from trusted headers, and enforce role-based access control for sensitive state changes.
How it was found
- Send an OPTIONS request to the reports endpoint to see the schema.
- Observe the schema includes privileged fields like moderator_action and reporter_ip.
- Send an unauthenticated POST request to the reports endpoint including those privileged fields.
- Receive a 201 Created response confirming the fields were stored.
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.
When a website accepts data from a form, it should only accept the fields it expects. Here, the server also accepted extra fields that control moderation decisions, like marking content as taken down. Because anyone could send these fields without logging in, an attacker could interfere with how reports are handled.
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.