Skip to content
Info disclosure Write-up Beginner

How I Found a Web App’s Full Source Code in Less Than 5 Minutes

A web application exposed a downloadable archive containing its full source code, including configuration files and a .git directory. An attacker could download this archive and obtain sensitive code and configuration data.

medium.com

Published on medium.com

In this post, I’ll show you how I was able to uncover the full source code of a web application in under five minutes using rec0n. Whether you’re into bug bounty hunting or web security, this quick method can help you spot exposed code and potential vulnerabilities fast.

m0rd3caii, 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 backup or source archive was left publicly accessible on the web server.

Impact

An attacker could obtain the full application source code and sensitive configuration files, which could be exploited further.

What the attacker needed

None

The fix

The exposed archive should be removed from public access and backups should not be stored in web-accessible locations.

How it was found

  1. Enter the target web app's domain into the rec0n tool.
  2. Let the tool scan available caches and backups for exposed files.
  3. Download the files it finds.
  4. Inspect the downloaded archive to confirm it contains the full source code and configuration.

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 web app's source code is the set of files that make it work. Here, those files were left in a place anyone could download, so a stranger could grab the whole project, including settings and database details, without breaking in.

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.