Reporting
A root password was stored in plaintext in a file that low-privileged users could read, so anyone with a shell on the system could obtain the root credentials and take full control. The text presents this as an example finding within a guide on how to write pentest reports.
Published on medium.com
Let me tell you something that most of the guys don’t know what to do after any successful guided pentest or after doing any kind of cybersecurity Ethical operations.
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 the password was saved in a plaintext file with permissions that let ordinary users read it, instead of being kept in a protected store such as the shadow password file.
Impact
Any user with shell access could retrieve the root credentials and fully compromise the system.
What the attacker needed
A low-privileged shell on the host
The fix
The plaintext password file should be removed, the root password rotated, and credentials kept in a properly protected store with least-privilege file permissions.
How it was found
- Get a shell on the target with low privileges.
- Read the plaintext password file.
- Use the recovered root password to log in as root and escalate privileges.
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 password for the most powerful account on a computer (the root account) was written down in an ordinary file instead of being kept secret. Any user who could log in, even with limited rights, could open that file and read the password. With it they could act as the administrator and control the whole machine.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.