GHSL-2023-080: Unauthenticated data exfiltration in Decidim - CVE-2023-34090
Decidim used the Ransack library for filtering without restricting which attributes could be queried, allowing an unauthenticated attacker to infer non-public database values character by character. This could expose sensitive data such as meeting salts and user email addresses.
Decidim, a platform for digital citizen participation, uses a third-party library named Ransack for filtering certain database collections (e.g., public meetings). By default, this library allows filtering on all data attributes and associations.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Ransack library was used without an allowlist of searchable attributes, so user-supplied filter parameters could reference any database column or association.
Impact
This issue may lead to Sensitive Data Disclosure, potentially exposing non-public data such as meeting salts and user email addresses.
What the attacker needed
No authentication required; at least one meeting with a salt exists; at least one meeting with a user registration exists
The fix
The vulnerability was fixed in new Decidim releases published on 2023-05-11.
How it was found
- Find a calendar URL for a process that lists meetings.
- Add a Ransack filter parameter to the URL to test if a meeting salt starts with a chosen character.
- Repeat with different characters until the first character is found, then extend the prefix to guess subsequent characters.
- For user emails, use a filter on the registrations association's user email field and guess character by character.
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 website let visitors filter lists of meetings using a query parameter, but the filtering tool was too permissive and could check hidden database fields. By asking 'does this secret start with this letter?' over and over, an attacker could slowly guess the secret one character at a time.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.