Access control issue on invoice documents downloading feature.
A user could download invoice document exports without authorisation by keeping a certain page open while their permissions were changed. This let an unauthorised user obtain exported invoice documents.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 6 days
- Paid in 6 days
- Disclosed after 6 days
Summary by the program
Reporter has found a way to download exports as an unauthorized user. This was only possible after changing the permissions for the user and having a certain page open during this change. The issue has been resolved by adding extra permission checks during the download action.
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 download action did not re-check the user's permissions, relying instead on authorisation performed when the page was first loaded.
Impact
An unauthorised user could download invoice document exports, but only in the narrow case where a page was already open during a permission change.
What the attacker needed
A user account with export permission; permission changed while a page stays open
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.
Permissions decide what a user may do. Here, a user could still download exports after their permissions changed if a certain page was open. The fix adds extra permission checks during the download action.
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.