Skip to content
IDOR Write-up Beginner

AntiHack IDOR on Create Submission

The submission creation endpoint accepted a client-supplied competition identifier without checking whether the user was allowed to submit to that competition. An attacker could create submissions on any programme, including locked ones, by changing that identifier.

Syahrul Akbar Rohmani Follow

Published on medium.com

{{media:0}}

Syahrul Akbar Rohmani, on medium.com

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.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What the report shows

The target is AntiHack.me, a bug bounty platform, and the feature involved is the submission form used to send a report to a program. The researcher, Syahrul Akbar Rohmani, published a short proof of concept showing that the request which creates a submission carries a program identifier in a parameter called comp_id, and that the server does not check whether the submitting user is entitled to submit to the program named in that value.

Syahrul Akbar Rohmani
Syahrul Akbar Rohmani From the original on medium.com

The steps as given:

  1. Create a submission and intercept the request using Burp Suite.
  2. Send the request to Intruder.
  3. Generate a list of comp_id values with a Python script.
  4. Load the list into Intruder and launch the attack.
Image for post
Image for post From the original on medium.com

The vulnerable parameter is named in the text as comp_id. The report does not include the request itself, the endpoint path, the HTTP method, any other parameters, or the Python script, so none of those can be reproduced from the write-up alone.

After the attack, the researcher shows the results in two places: the AntiHack inbox, where the created submissions appear, and the profile page.

Image for post
Image for post From the original on medium.com
Image for post
Image for post

The final screenshot is captioned Locked Program.

Image for post
Locked Program From the original on medium.com

Timeline as reported:

Date Event
3 December 2018 Reported to AntiHack
27 December 2018 AntiHack changed the status to Resolved and sent a swag

No severity rating, CVSS score or monetary bounty is given. The reward mentioned is a swag item, and the fix is described only as the report being resolved.

Root cause

The report does not describe the server-side cause; the behaviour is consistent with a missing authorisation check on the object referenced by comp_id. The create-submission handler appears to take the program identifier straight from the client, look up the program, and write the submission, without confirming that the authenticated user is a member of that program or that the program accepts submissions at all. In other words, the identifier is treated as trusted input rather than as an object reference that must be validated against the caller's permissions. The report itself does not describe the server-side code, so this is an inference from the behaviour shown.

Impact

Within the report's own framing, an attacker could create submissions on every program on the platform, including locked ones. That means creating submissions on programs the attacker has no relationship with. The report does not describe any further effect, such as reading other users' submissions, modifying existing reports, or accessing data beyond the creation itself, and it does not claim any.

How this kind of bug works

Insecure direct object reference is an access control failure, not an injection failure. The application exposes an internal identifier, here a program id, in a request, and the server uses that identifier to select the object it will act on. The bug appears when the server authenticates the request but does not authorise the action against the specific object: it knows who you are, but never asks whether this object is yours to touch.

Create operations are a common place for this because developers often focus on validating the payload (required fields, formats, sizes) and treat the parent identifier as context rather than as a security decision. The same pattern appears in update and delete handlers, in file and attachment endpoints, and in anything that takes a parent id plus a child body.

Defences are straightforward in principle: derive the object from the session where possible, and where the client must supply an identifier, resolve it server-side and check the caller's role against that object before any write. Deny by default, and return a generic error rather than distinguishing "does not exist" from "not yours", so the endpoint does not become an enumeration oracle. State checks belong in the same place: a locked or closed program should be rejected by the same authorisation layer, not by a separate flag checked somewhere else.

How to test for it

  1. Identify endpoints that create, update or delete an object belonging to a parent, such as a submission belonging to a program, a comment belonging to a report, or a member belonging to a team. Watch for numeric or UUID identifiers in the body, the query string or the path.
  2. With two accounts you control, map which identifiers belong to which account. Perform the action normally with account A and capture the request.
  3. Replay the same request with account B's session, substituting an identifier that belongs to A, or one that belongs to an object B should not reach, such as a private, closed or locked parent.
  4. Compare the response and, more importantly, the server state: does the object appear under the other parent, in the other account's inbox, or in a listing you can read?
  5. Where identifiers are sequential, enumerate a small range to see whether the endpoint accepts values outside your own set. Stop at the minimum needed to demonstrate the issue and do not write large volumes of data into other people's queues.

A positive result is a successful write or read against an object the session is not entitled to, confirmed by observing the effect from the owning account. Common false positives: the endpoint returns 200 but silently ignores the identifier and uses the session's own context; the object is genuinely public and writable by design; the identifier is a signed or opaque token that the server validates; or the response is an error page rendered with a 200 status. Always confirm the side effect rather than trusting the status code.

How it is fixed

The standard fix is a server-side authorisation check on every object reference: resolve comp_id to a program, then verify that the authenticated user is a member with submission rights and that the program is open for submissions, before writing anything. Prefer deriving the parent from the session or from a scoped route where the design allows it. Apply the same check to read, update and delete paths on the same object, since the same omission usually exists in more than one handler. Log and rate-limit repeated failures so enumeration is visible, and add regression tests that exercise the endpoint with a foreign identifier and expect a denial.

Hunting notes

This class hides in multi-tenant features: anything with a parent id in the body, invitation and membership flows, attachment uploads, draft and submission forms, and admin-style actions exposed to normal users. Recon signals worth noting are numeric or short identifiers in JSON bodies, endpoints that accept an id alongside a full object payload, and features that show a "locked" or "closed" state in the UI, since state checks are often implemented separately from permission checks and can be bypassed by calling the API directly.

To make the report land, show the request, the substituted identifier, and the observable effect from the victim side, such as the created record appearing in another account's inbox. Keep the demonstration minimal, avoid bulk writes, and state clearly which authorisation decision was missing. Where the platform distinguishes severity by data exposure, note honestly that a create-only issue is usually lower impact than a read of other users' data.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 7 min read.

What happened, in plain words

AntiHack.me is a bug bounty platform: a website where security researchers send reports about bugs to companies and projects that have signed up (each one is called a program). The feature involved here is the submission form, the page a researcher uses to send a report to a chosen program.

Syahrul Akbar Rohmani published a short proof of concept showing that when you create a submission, the request your browser sends contains an identifier for the program, in a parameter called comp_id. The stated result is that an attacker can create a submission on any program, including programs that are locked. The report does not explain what a locked program is beyond that label.

Syahrul Akbar Rohmani
Syahrul Akbar Rohmani From the original on medium.com

The steps, as given:

  1. Create a submission and intercept the request using Burp Suite.
  2. Send the request to Intruder.
  3. Generate a list of comp_id values with a Python script.
  4. Load the list into Intruder and launch the attack.
Image for post
Image for post From the original on medium.com

Burp Suite is a tool that sits between your browser and the website, so you can see and change the requests your browser sends. Intruder is the part of Burp that takes one request and repeats it many times, each time with a different value in a chosen spot. The spot here is comp_id, the program identifier.

After the attack, the researcher shows the results in two places: the AntiHack inbox, where the created submissions appear, and the profile page.

Image for post
Image for post From the original on medium.com
Image for post
Image for post

The final screenshot is captioned Locked Program.

Image for post
Locked Program From the original on medium.com

Timeline as reported:

Date Event
3 December 2018 Reported to AntiHack
27 December 2018 AntiHack changed the status to Resolved and sent a swag

No severity rating, CVSS score or monetary bounty is given. The reward mentioned is a swag item, and the fix is described only as the report being resolved.

In general, how this kind of bug works

This is an insecure direct object reference, usually shortened to IDOR. It is an access control failure, not an injection failure. The application exposes an internal identifier, here a program id, in a request, and the server uses that identifier to pick the object it will act on. The bug appears when the server checks who you are but not whether this particular object is yours to touch. A simple comparison: a hotel receptionist checks your name at the door, then hands you the key to any room number you say out loud, without checking that the room is the one you booked.

Create operations are a common place for this because developers often focus on validating the payload (required fields, formats, sizes) and treat the parent identifier as context rather than as a security decision. The same pattern appears in update and delete handlers, in file and attachment endpoints, and in anything that takes a parent id plus a child body.

Defences are straightforward in principle: derive the object from the session where possible, and where the client must supply an identifier, resolve it server-side and check the caller's role against that object before any write. Deny by default, and return a generic error rather than distinguishing "does not exist" from "not yours", so the endpoint does not become a way to discover which identifiers exist. State checks belong in the same place: a locked or closed program should be rejected by the same authorisation layer, not by a separate flag checked somewhere else.

How to test for it

  1. Identify endpoints that create, update or delete an object belonging to a parent, such as a submission belonging to a program, a comment belonging to a report, or a member belonging to a team. Watch for numeric or UUID identifiers in the body, the query string or the path.
  2. With two accounts you control, map which identifiers belong to which account. Perform the action normally with account A and capture the request.
  3. Replay the same request with account B's session, substituting an identifier that belongs to A, or one that belongs to an object B should not reach, such as a private, closed or locked parent.
  4. Compare the response and, more importantly, the server state: does the object appear under the other parent, in the other account's inbox, or in a listing you can read?
  5. Where identifiers are sequential, enumerate a small range to see whether the endpoint accepts values outside your own set. Stop at the minimum needed to demonstrate the issue and do not write large volumes of data into other people's queues.

A positive result is a successful write or read against an object the session is not entitled to, confirmed by observing the effect from the owning account. Common false positives: the endpoint returns 200 but silently ignores the identifier and uses the session's own context; the object is genuinely public and writable by design; the identifier is a signed or opaque token that the server validates; or the response is an error page rendered with a 200 status. Always confirm the side effect rather than trusting the status code.

How it is fixed

The standard fix is a server-side authorisation check on every object reference: resolve comp_id to a program, then verify that the authenticated user is a member with submission rights and that the program is open for submissions, before writing anything. Prefer deriving the parent from the session or from a scoped route where the design allows it. Apply the same check to read, update and delete paths on the same object, since the same omission usually exists in more than one handler. Log and rate-limit repeated failures so enumeration is visible, and add regression tests that exercise the endpoint with a foreign identifier and expect a denial.

Where to look

This class hides in features shared between many customers: anything with a parent id in the body, invitation and membership flows, attachment uploads, draft and submission forms, and admin-style actions exposed to normal users. Signals worth noting are numeric or short identifiers in JSON bodies, endpoints that accept an id alongside a full object payload, and features that show a "locked" or "closed" state in the interface, since state checks are often implemented separately from permission checks and can be bypassed by calling the API directly.

To make the report land, show the request, the substituted identifier, and the observable effect from the victim side, such as the created record appearing in another account's inbox. Keep the demonstration minimal, avoid bulk writes, and state clearly which authorisation decision was missing. Where the platform distinguishes severity by data exposure, note honestly that a create-only issue is usually lower impact than a read of other users' data.

Glossary

  • Bug bounty platform: a website where researchers report bugs to companies and projects, often for a reward.
  • Program: a company or project on such a platform that accepts reports, with its own rules and scope.
  • Submission: a report sent to a program through the platform's form.
  • Request: the message your browser sends to a website when you click something or submit a form.
  • Parameter: a named value inside a request, such as comp_id, that the server reads.
  • comp_id: the parameter holding the program identifier in the create-submission request.
  • Identifier (id): a number or string the application uses internally to refer to a specific object, such as one program.
  • Burp Suite: a tool that sits between browser and website so you can view and modify requests.
  • Intercept: pausing a request inside such a tool before it reaches the server, so you can edit it.
  • Intruder: the Burp component that repeats one request many times with different values in a chosen position.
  • Python script: a small program used here to generate a list of comp_id values.
  • IDOR (insecure direct object reference): a bug where the server accepts an object identifier from the client without checking that the user is allowed to access that object.
  • Access control / authorisation: the decision about whether a logged-in user is permitted to perform a specific action on a specific object.
  • Authentication: proving who you are, for example by logging in.
  • Session: the server's record of your logged-in state, usually tied to a cookie.
  • Cookie: a small piece of data the browser stores and sends back with each request, often used to identify your session.
  • Token: a value used in place of credentials to prove identity or permission; it must be kept secret.
  • Endpoint: a specific URL and method on a server that performs an action.
  • HTTP method: the verb in a request, such as GET to read or POST to create.
  • Payload: the data sent in a request body, such as the fields of a form.
  • Enumeration: trying many identifiers in sequence to discover which ones exist or are accepted.
  • Status code: the number a server returns with its response, such as 200 for success or 403 for forbidden.
  • False positive: a finding that looks like a bug but is not, because the behaviour is intended or harmless.
  • CVSS: a standard scoring system for the severity of a vulnerability.
  • Regression test: an automated test that checks a fixed bug stays fixed.
  • Rate limiting: restricting how many requests a client may make in a period of time.
  • Multi-tenant: a system where many separate customers share one application and their data must stay apart.
  • UUID: a long random-looking identifier used instead of a simple number.

More by Syahrul Akbar Rohmani

View all

1 more disclosed report, best first.

More from AntiHack.me

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.