teach.udemy.com log poison vulnerability through wordpress debug.log being publically available
A WordPress debug log file was publicly accessible and contained user IP addresses, email addresses and user-agent strings. The reporter claims an attacker could inject code through a spoofed user-agent and achieve remote code execution, though no exploitation is demonstrated.
- Triaged in 2 hours
- Fixed in 7 hours
- Paid in 33 hours
- Disclosed after 33 days
Hello udemy
your site teach.udemy.com has its debug.log publically available consisting of 1 gb of debug logs. The logs don't expose critical information except for some user ip addresses, mail-addresses and other info, but it may lead to remote code execution,since the logs also store user agent values. If an attacker makes a request that makes it to the debug.log file, he can execute arbitrary code through his spoofed user-agent. To fix this issue, you can turn debugging off in your wp-config.php file
the debug.log is avaiable at https://teach.udemy.com/wp-content/debug.log
If you have any additional questions about this vulnerability, feel free to ask.
Best regards Martin Thirup
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 WordPress debugging was left enabled and the resulting debug.log was placed in a web-accessible directory without access restrictions.
Impact
Sensitive data such as IP addresses and email addresses was exposed, and the reporter claims it could lead to remote code execution, but no working exploit is shown.
What the attacker needed
None
The fix
Debugging should be turned off in the WordPress configuration file.
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 debug log is a file where a website writes diagnostic messages. Here that file was left where anyone on the internet could download it, and it included visitors' IP addresses, email addresses and browser identifiers. The reporter suggests that because browser identifiers are written into the log, someone might be able to sneak code into the log and get it run, but they do not show this actually working.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.