Anyone can register organization legal type as "Soletrader"
The platform accepted an organisation legal type value ('Soletrader') that was not among the intended options, because the server did not validate the submitted value against an allow-list. An attacker could register an organisation with this unexpected legal type, potentially gaining unplanned or unauthorised features when the platform calls the MangoPay API.
Originally disclosed on HackerOne
- Fixed in 18 hours
- Disclosed after 19 hours
When Organization type is registered, two values are displayed : Business and Organization. When another value is provided, an error message is printed saying the Legal Type is wrong.
This error message is not printed and request success when the value "Soletrader" is provided. The value "Soletrader" is part of the MangoPay API Documentation ( https://docs.mangopay.com/guide/kyc).
A malicious attacker can register its organization with this Legal Type which seems to be not planned by the librapay.com platform.
Steps to reproduce
- Go to https://en.liberapay.com/~107759/identity
- Check the box "Yes, I represent a business or nonprofit."
- Inspect element with your browser on the "Organization type" input, and change <option value="BUSINESS">Entreprise</option> with <option value="Soletrader">Entreprise</option>.
- Select "Enterprise" on the Organization type" input
- Click on the "Save button".
- The request is accepted by the platform and the success message "Your identity information has been updated." is printed.
You can try to do the same providing another value than "Soletrader" and you will check that an error is printed.
Impact
A malicious attacker can register its organization with this Legal Type which seems to be not planned by the librapay.com platform. He could use this to have not planned or unauthorized features when calling Mangopay API.
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 server trusted the client-supplied legal type value without validating it against the list of permitted options.
Impact
An attacker could register an organisation with an unexpected legal type, which the reporter suggests might grant unplanned or unauthorised features when the platform calls the MangoPay API; the text does not demonstrate any concrete feature or data access.
What the attacker needed
A user account on the platform; ability to edit form values in the browser
The fix
The server should reject legal type values outside the permitted options.
How it was found
- Go to the identity page for the account.
- Tick the box indicating you represent a business or nonprofit.
- Use the browser inspector to change the organisation type option value to 'Soletrader'.
- Select that option in the organisation type field.
- Click the save button.
- Observe that the request is accepted and a success message is shown.
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.
When you fill in a form, the website should check on its own servers that the answer is one of the allowed choices, not just rely on the dropdown menu in your browser. Here, someone could edit the dropdown to send a different value, and the server accepted it without complaint. That let them set an organisation type the site did not intend to support.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.