Skip to content
Info disclosure Write-up Beginner

Hack Story: Unveiling Security Flaws in a Government Portal

A government portal exposed volunteer contact details through a publicly accessible URL, and a survey endpoint accepted any matching CSRF token values, allowing enumeration of user IDs to retrieve tens of thousands of survey records containing personal information.

sahadmk Follow

Published on medium.com

I recently identified security vulnerabilities in one of the online portals of the Kerala Government. While casually googling for email IDs, I unexpectedly discovered a publicly accessible URL within the portal, exposing the names, email addresses, and phone numbers of volunteers.

Sahad Mk, on medium.com

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 application exposed endpoints without authentication and implemented CSRF protection incorrectly by only checking that two token values matched, without validating their authenticity.

Impact

An attacker could access personal information of approximately 3.7K volunteers and enumerate user IDs to retrieve around 75K survey records containing PII.

What the attacker needed

Publicly accessible endpoint; no authentication required

The fix

The concerned department promptly fixed the issues after being informed.

How it was found

  1. Find a publicly accessible URL exposing volunteer names, emails, and phone numbers.
  2. Review client-side JavaScript to identify API endpoints and their parameters.
  3. Craft a POST request to a survey endpoint using the discovered parameters.
  4. Observe that any matching CSRF token values, including empty ones, are accepted.
  5. Enumerate the user_id parameter to retrieve survey records containing personal information.

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.

A website was leaking personal details like names, emails, and phone numbers because some pages could be accessed without proper checks. The site also had a protection meant to stop forged requests, but it accepted any made-up value, so someone could change a number in the request to see other people's survey answers.

What is Info disclosure?

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

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.