Skip to content
Info disclosure Disclosed report Beginner

Password Cracking - Weak Password Used to Secure ████ Containing a Plaintext Password

A PDF guide was protected with a weak password that could be cracked using a common wordlist, and the guide itself contained a plaintext password for a configuration file. An attacker could use this to set up a secure communication application and potentially join a secure channel if they also obtained a DoD ID number.

z32 Follow

Originally disclosed on HackerOne

  • Triaged in 7 hours
  • Fixed in 5 months
  • Disclosed after 5 months

Summary: I was able to crack the password to the ████████ located at ██████, as the pdf was protected with a weak password contained in a common word list. This guide contains steps to set-up the ███████ secure communication application with the unprotected configuration file located at██████████. This guide also contains a plaintext password for the configuration file.

Step-by-step Reproduction Instructions

  1. Browse to ███
  2. Click ████████. You will be prompted for a password.
  3. Using wget, download the pdf: wget ████████.
  4. Once downloaded, you can use pdf2john to convert the pdf password into a format that is parse-able by john:

perl /path/to/john/pdf2john.pl █████████.pdf 5. This will produce a hash. Cracking this hash with john and the rockyou wordlist will produce the password:

root@kali:/home/kali# john --wordlist=/usr/share/wordlists/rockyou.txt hash.txt 
Using default input encoding: UTF-8
Loaded 1 password hash (PDF [MD5 SHA2 RC4/AES 32/64])
Cost 1 (revision) is 6 for all loaded hashes
Will run 4 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
█████████           (████████.pdf)
1g 0:00:00:00 DONE (2020-09-18 01:08) 1.785g/s 2285p/s 2285c/s 2285C/s 753951..poohbear1
Use the "--show --format=PDF" options to display all of the cracked passwords reliably
Session completed
  1. You can now browse to █████████, click ███, and type in the password █████████ to view the pdf (or view it on your local system).
  2. Reading the setup instructions, and attacker can download the Messaging Configto download the ████ configuration file. This mobile guide contains the plaintext password for the configuration file (███████). They can then attempt to use the configuration file and a compromised .mil/.gov/etc. account to gain access to ████ secure communications.

References

https://github.com/openwall/john/blob/bleeding-jumbo/run/pdf2john.pl

Suggested Mitigation/Remediation Actions

Use a strong password for this .pdf file in order to prevent successful password cracking attempts.

Impact

This guide contains steps to set-up the ███████ secure communication application with the unprotected configuration file located at█████. This guide also contains a plaintext password for the configuration file. An attacker could potentially join the secure communication channel if they were able to obtain access to the DoD ID number of an ███ member.

The original report as published on HackerOne, by z32. 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 PDF was protected with a weak, common password, and the document itself stored a plaintext password for a configuration file.

Impact

An attacker could potentially join the secure communication channel if they were able to obtain access to the DoD ID number of a member.

What the attacker needed

Access to the PDF file; ability to download the PDF; a wordlist like rockyou

The fix

Use a strong password for the PDF file to prevent successful password cracking attempts.

How it was found

  1. Browse to the PDF location and note the password prompt.
  2. Download the PDF using wget.
  3. Convert the PDF password hash using pdf2john.
  4. Crack the hash with john and the rockyou wordlist to obtain the password.
  5. Use the cracked password to open the PDF and read the setup instructions.
  6. Download the messaging configuration file, which contains a plaintext password.

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 PDF file was locked with a password, but that password was easy to guess because it was a common word. The unlocked PDF contained another password written in plain text, which could let someone access a secure messaging system.

What is Info disclosure?

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

More by z32

View all

18 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.