Skip to content
Info disclosure Advisory Intermediate CVE-2023-34090

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.

p Follow

Originally disclosed on GitHub Security Lab

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.

p-, on GitHub Security Lab

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

  1. Find a calendar URL for a process that lists meetings.
  2. Add a Ransack filter parameter to the URL to test if a meeting salt starts with a chosen character.
  3. Repeat with different characters until the first character is found, then extend the prefix to guess subsequent characters.
  4. 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.

More by p

View all

49 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.