Skip to content
Info disclosure Disclosed report Beginner

Exposed .bash_history at http://21days2017.mtncameroon.net/.bash_history

A server exposed its .bash_history file, which contains commands previously run on the system. An attacker could read this file to learn about the server's configuration and use that information to plan further attacks.

xlife Follow

Originally disclosed on HackerOne

  • Triaged in 10 days
  • Fixed in 3 months
  • Disclosed after 2.1 years

Summary:

Dear Security Team,

I found some dangerous urls on your servers that reveal important informations about the servers configuration themself and that are very interesting from a hacker point of view.

Steps To Reproduce:

http://21days2017.mtncameroon.net/.bash_history

##Remediation

  • disable that kind of function on production server
  • protect them with strong credentials
  • use ip restriction

Best regards, Vishu10x00 ❤️

Impact

While this does not represent a real security issue, this reveal important informations about your system and could be used by a malicious user for a future attack.

The original report as published on HackerOne, by xlife. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the web server was misconfigured to serve hidden files such as .bash_history from the web root instead of blocking access to them.

Impact

The report states this does not represent a real security issue, but it reveals important information about the system that could be used by a malicious user for a future attack.

What the attacker needed

None

The fix

The server should be configured to block access to hidden files like .bash_history, for example by disabling that kind of function on production, protecting it with strong credentials, or restricting access by IP address.

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 report has not been written yet. The Original tab links to the source.

A .bash_history file is a log that records the commands someone typed into a Linux terminal. If a web server makes that file publicly downloadable, anyone can read it and see what the administrator did, such as which programs were installed or which files were edited. This report says that file was reachable at a public web address.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by xlife

View all

1 more disclosed report, best first.

More from MTN Group

View all

The newest disclosed reports for this program.

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.