Skip to content
IDOR Write-up Advanced

Privileged account creation via Mass Assignment towards a full compromise using a Stored XSS

The account creation endpoint allowed mass assignment of roles, enabling an attacker to create an account with the JOUVE role and a partial admin role, leading to sensitive data exposure. A stored XSS in the admin panel, triggered by a Jouve account injecting a payload into a user's name, could compromise an administrator.

Aethlios Follow

Published on aeth.cc

Disclaimer : this exploitation was realized in a legal context of a Bug Bounty. The disclosure of the information contained in this article was made with the agreement of pass Culture and comes after a patch.

Aethlios (@AethliosIK), on aeth.cc

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 signup endpoint accepted a roles array from user input and only removed some roles, missing the JOUVE role and allowing a string 'ADMIN' to bypass the removal due to Python's dynamic typing.

Impact

An attacker could create a privileged account to access sensitive data and, via stored XSS, execute actions in the admin panel, potentially leading to full compromise.

What the attacker needed

Knowledge of a whitelisted email; account creation feature enabled; a Jouve account for XSS

The fix

The deprecated signup endpoint was removed and the stored XSS was fixed similarly to a previous XSS, with additional linting to prevent recurrence.

How it was found

  1. Send a POST request to the signup endpoint with a JSON body including a roles array containing 'JOUVE' and 'ADMIN'.
  2. Observe that the response includes the injected roles, confirming the account was created with them.
  3. Log in with the created account to access privileged features, such as exporting beneficiary data.
  4. As a Jouve account, create a fraud review on a beneficiary account with a malicious first or last name.
  5. When an administrator views the fraud review page, the stored XSS executes.

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.

The signup form let users set their own roles, so someone could sign up as a privileged user. Then, a separate flaw let that user inject a script that runs in an admin's browser.

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.

More by Aethlios

View all

3 more disclosed reports, best first.

More from pass Culture

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.