DMCA.COM Hack, Full Disclosure (With Proof-of-Concept)
The DMCA.com web application disabled Pro features only on the client side and failed to sanitise user-supplied profile fields, allowing stored cross-site scripting. An attacker could steal the API token from the DOM and, combined with an improper access control flaw in the addProtectedItem endpoint, inject JavaScript into other users' dashboards and issue fake verified certificates.
Published on websec.nl
First of all, for those who don’t know what DMCA is: DMCA stands for the ‘Digital Millennium Copyright Act’, which is a law protecting people’s intellectual property such as images, texts and other content. DMCA.COM provides services pertaining to that law by offering solutions such as takedown requests (removing the…
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 server trusted client-side restrictions and inserted user-controlled profile fields into HTML attributes without sanitisation, while the API endpoint lacked authorisation checks on the badge identifier.
Impact
An attacker could steal the API token from any user's dashboard, including support staff, and use it to take over API access; combined with the access control flaw, they could also issue fake verified certificates for arbitrary domains without domain verification.
What the attacker needed
A free account; victim clicks a social tab; knowledge of target badge identifier
The fix
The report does not state that a fix was applied; it suggests implementing a sanitisation function such as htmlspecialchars and proper access control.
How it was found
- Register an account and open the business profile page where Pro features are disabled.
- Use the browser inspector to remove the client-side disabled attribute from the Pro feature fields.
- Intercept the profile update request and modify the Pro-related parameters with a javascript: payload.
- Submit the request and confirm the changes are saved.
- Visit the profile page and observe the stored script executing when the social tab is clicked.
- Send a request to the addProtectedItem endpoint with another user's badge identifier and an XSS payload in the status field.
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.
Some websites hide paid features by simply greying them out in the browser, but the server still accepts the data if you send it directly. Here, the server also failed to clean up text that users typed into profile fields, so a script could be saved and later run in other people's browsers. That let the attacker read a secret token stored in the page and use it to change other accounts.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.