Skip to content
Info disclosure Write-up Beginner

Bug Turned into a Double Payout: The Azure Pipeline Variable Leak

A JavaScript file exposed an Azure Pipeline log variable containing a PostgreSQL password, but the variable was for internal use and had little impact. The hunter later found other files leaking different pipeline variables, and after the first fix only the originally reported URL was cleaned, leaving the others live.

medium.com

Published on medium.com

Hey everyone! This is a little story from late 2023 about a private program that taught me a valuable lesson: Never assume a tool caught everything, and never assume a fix is complete.

Vibhurushi Chotaliya, 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, sensitive CI/CD pipeline variables were embedded in publicly accessible JavaScript files, and the initial fix only removed the one file that was reported.

Impact

The leaked variables were for internal use and had little impact, but the incomplete fix left other files still exposing different pipeline variables.

What the attacker needed

Publicly accessible JavaScript files; access to the Wayback Machine; manual review of JavaScript files

The fix

The program fixed only the originally reported URL, and the text does not state that the remaining files were fixed.

How it was found

  1. Harvest old JavaScript file URLs from the Wayback Machine using waybackurls.
  2. Run Nuclei on the collected URLs, which found nothing.
  3. Manually open a large JavaScript file and spot a PGPASSWORD string.
  4. Beautify the code section and identify an Azure Pipeline log variable block.
  5. Report the single URL to Bugcrowd, which was triaged as P3.
  6. Later check other JavaScript files and find multiple files leaking different pipeline variables.

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 JavaScript file is code that runs in your browser, and it can accidentally contain secrets like passwords. Here, a password for a database was left in a file anyone could download, but because it was only used internally it did not let an outsider do much. Later, other similar files were found still leaking secrets even after the first one was fixed.

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.