Skip to content
XSS Write-up Intermediate

Security Advisory: Chaining XSS, Database Exposure, and GDPR Violations in Devcomm BIP CMS

The Devcomm BIP CMS search function reflected unsanitised input, allowing an attacker to run script in a victim's browser and steal session cookies. A separate error page leaked database credentials, and a whistleblower module's API returned the personal details of compliance staff.

https.vrun Follow

Published on medium.com

During an independent security assessment of Polish public sector infrastructure, I identified a critical multi-vector attack chain affecting vendor-managed government web applications.

https.vrun, 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 missing output encoding on the search parameter, verbose error handling that printed database credentials, and an API that returned more user fields than the page needed.

Impact

The XSS could lead to administrative account takeover because the session cookie lacked HttpOnly; the error page exposed database details that, with no rate limiting on the admin login, lowered the barrier to brute-force attacks; and the API leaked the names, emails and permissions of internal compliance staff, breaching the GDPR promise made to users.

What the attacker needed

Victim clicks a crafted search link; no login needed for XSS; access to the public search page; a submitted whistleblower report token

The fix

The vendor migrated the affected portals to a cloud environment, and the report states the vulnerabilities are mitigated.

How it was found

  1. Find a search function on a Devcomm BIP CMS portal.
  2. Enter a simple HTML tag in the search box and see it reflected.
  3. Replace it with a script payload in the search parameter and observe execution.
  4. Put a single quote in the id parameter to trigger a verbose error page.
  5. Read the leaked PostgreSQL database name, host, port and user from the error output.
  6. Submit a whistleblower report, then use the tracking token at the status portal and intercept the API response.

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 search box on a government website echoed back whatever was typed into it without cleaning it first. That let an attacker make the site run their own code in a visitor's browser, which could steal the visitor's login session. Separately, an error page showed database login details, and a whistleblower form's behind-the-scenes response included staff names and email addresses it should not have.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.