Skip to content
Info disclosure Write-up Advanced

Chaining multiple vulnerabilities to exfiltrate over 250GB of PIA

An exposed SMB share contained a custom JAR file whose decompiled source revealed database credentials. Reusing those credentials against an adjacent subnet gave access to a SQL server holding hundreds of gigabytes of customer data, which the testers then exfiltrated via a rooted IP phone and a reverse SSH tunnel.

medium.com

Published on medium.com

This is a write-up of an internal pentest we did a couple of years ago, that involved several small vulnerabilities but allowed us to successfully exfiltrate a considerable amount of information.

Security Shenanigans, 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 a combination of an unauthenticated SMB share, hard-coded database credentials in a compiled binary, password reuse across systems, and default credentials on an IoT phone.

Impact

The testers could read and exfiltrate over 250GB of customer data, including email addresses, transaction records, and full credit card numbers, though the text notes that a daily download of over 200GB might have triggered NIDS alerts.

What the attacker needed

Internal network access; exposed SMB share; default IoT credentials

The fix

The text does not state that the issues were fixed; they should be addressed by removing hard-coded credentials, restricting SMB shares, enforcing unique passwords, changing default IoT credentials, and deploying 802.1x network authentication.

How it was found

  1. Scan the internal subnet and find an exposed SMB share.
  2. Access the share and locate a custom JAR file.
  3. Decompile the JAR and extract database connection details.
  4. Scan adjacent subnets and find a SQL server that accepts the reused credentials.
  5. Gain root on a Yealink IP phone via default credentials and a passwd file edit.
  6. Install an SSH server on the phone and use a reverse tunnel to exfiltrate the database dumps.

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 developer left a file-sharing folder open on the internal network. Inside was a program whose source code still contained the username and password for a database. The testers tried that same password on other machines and found a database full of customer records, then used a poorly secured office phone to quietly copy the data out.

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.