Skip to content
Leaked secrets Write-up Beginner

Critical Security Findings at the University of Cambridge: A Methodology for Detecting Exposed Credentials

Two publicly accessible configuration files exposed SCP and MySQL credentials. An attacker could use these to access the web server's file system and the MySQL database, leading to data theft or manipulation.

Abid Ahmad Follow

Published on infosecwriteups.com

In 2022, during my security research on the University of Cambridge’s web applications, I discovered two critical vulnerabilities that exposed sensitive credentials and led to unauthorized access. For my responsible disclosure of these security issues, I was honoured with a Letter of Appreciation from the University…

Abid Ahmad, on infosecwriteups.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 configuration files containing hardcoded credentials were stored in a publicly accessible web directory.

Impact

An attacker could gain unauthorized access to sensitive data, modify or delete critical files, manipulate the database leading to data breaches, and cause service disruptions.

What the attacker needed

None

The fix

The vulnerabilities were fixed after responsible disclosure, and the exposed files were secured.

How it was found

  1. Collect URLs for cam.ac.uk that end in file extensions such as js, env, config, json, yaml, yml, conf, cnf, db, or log using the waymore tool.
  2. Download all collected files locally using the FetchAllSrc tool.
  3. Scan the downloaded files for hardcoded credentials, tokens, and secrets using the JSLeakRecon tool.
  4. Identify a .json file containing SCP credentials and a .yml file containing MySQL credentials.

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.

Some websites leave configuration files, which are meant to be private, on a public web address. These files contained usernames and passwords for a file-transfer service and a database. Anyone who found them could log in and read or change data.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by Abid Ahmad

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.