Default page exposes admin functions and all metods and classes available. on https://██████/█████/dwr/index.html
The DWR engine's default index page was publicly reachable and listed every class and method available to the application, including test and admin functions. An attacker could use that listing to discover and invoke actions that were not meant to be public, and the reporter notes some of those methods were vulnerable to SQL injection and XSS.
Originally disclosed on HackerOne
- Triaged in 18 days
- Fixed in 4 months
- Disclosed after 2.7 years
Summary: https://████/██████/dwr/index.html is a default installation page of DWR engine that exposes all classes and methods available to the user.
Description: https://█████████/██████████/dwr/index.html is a default installation page of DWR engine that exposes all classes and methods available to the user. This include test methods and classes as well as admin functions. Some of these I have found to be vulnerable to issues like SQL injection and XSS since they may not have had the same attention as other functions that were expected to be in production.
Source http://gerionsecurity.com/2012/09/experiences-in-pentesting-dwr/
Impact
Attacker easily discovering and abusing actions they should not be able to use or know about. Abusing information to find issues like SQL injection on poorly implemented functions that are not expected to be publicly available.
Step-by-step Reproduction Instructions
1.visit https://██████/████/dwr/index.html 2.You can now view and execute all the methods and classes available to this application included test and admin functionality.
Product, Version, and Configuration (If applicable)
Current version of Firefox.
Suggested Mitigation/Remediation Actions
delete or restrict access to this default page. Remove or restrict access to test and admin functionality that are unneeded.
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 DWR default test/debug index page was deployed to production without being removed or restricted, leaving the full method inventory publicly readable.
Impact
An attacker could easily discover and abuse actions they should not be able to use or know about, and the reporter says some of those poorly implemented functions were vulnerable to SQL injection and XSS.
What the attacker needed
None
The fix
The default page should be deleted or access-restricted, and unneeded test and admin functionality should be removed or restricted.
How it was found
- Visit the DWR index page on the target host.
- View and execute the listed methods and classes, including test and admin functionality.
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.
DWR's default index page lists every class and method the application exposes. Here it was left reachable, so anyone could see the full list, including test and admin ones, and try calling them.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.