TryHackMe DAV room shows root access via default WebDAV credentials and a sudo misconfiguration
Compiled by RedTeamDaily · AI-assisted summaries · Human review not recorded for this version
Published
What happened
The DAV room on TryHackMe (BSidesGT) chains two misconfigurations rather than a CVE: an exposed /webdav path on Apache httpd 2.4.18 protected by publicly documented XAMPP default credentials, which allowed uploading a PHP file into an executable web path, and a NOPASSWD sudo rule permitting /bin/cat as root. Defenders should remove or restrict WebDAV where unused, change or remove default credentials, block execution in upload directories, and avoid granting sudo on file-read utilities. This is a lab write-up with no in-the-wild activity reported.
For security analysts · Written by AI from 1 source · Report an error
Key points
- The attack relied on default WebDAV credentials, not a software vulnerability.
- A PHP file uploaded to an executable web directory allowed the attacker to run code on the server.
- A sudo rule allowing cat without a password let the attacker read any file as root.
webdavdefault credentialssudo misconfigurationprivilege escalationtryhackmectf writeupfile upload
- Publishers
- 1
Sources and verification
Sources and editorial review
No named human review has been recorded for this story.
How severity and exploitation labels work · All sources · Report an error
What to do
- Disable WebDAV on any server where it is not needed.
- Change or remove default credentials on any WebDAV or XAMPP installation.
- Restrict sudo rules so that file-read utilities such as cat are not granted to users without strict path limits.
Written by AI from the sources, checked against them
Source timeline (UTC) · 1 update
1 published report from 1 publisher. Independent confirmations are unverified.
Explore this report
Ask AI about this story
Optional follow-up answers generated from our coverage. Check the linked sources before acting.
Ask your own questionWho and what is in it
Companies
Products