Corda Server XSS ████████
The Corda Server's ctredirector.dll reflects the @_FILE parameter into an error page, and the @_TEXTDESCRIPTIONEN parameter forces the response to render as text/html, allowing an attacker to execute script in the victim's browser. This could let an attacker steal session cookies or conduct phishing.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 7 months
- Disclosed after 17 months
Summary by the researcher
Corda Server's allows you to feed parameter to dictate how content is rendered or shown. We can use @_FILE to load a file/url but will error out due to the config script if feed anything that doesn't match. We can then abuse @_TEXTDESCRIPTIONEN to force the page to render as text/html. Putting it together means we can induce an error by loading an XSS payload and then force said page to render as text/html triggering XSS.
Corda website: https://website.com/?@_FILE<svg/onload=confirm(document.domain)>@_TEXTDESCRIPTIONEN
The report
Summary: Cord server will display the error message if something isn't allowed to be used thus allowing xss Description: /scripts/ctredirector.dll allows users to call images or files. We can use the parameter @_FILE to dictate a file or url, if it fails it'll display the url into the page. We then leverage an additional parameter named @_TEXTDESCRIPTIONEN to make the page display as a text which then allows the opportunity to trigger XSS.
Impact
Medium
Step-by-step Reproduction Instructions
Check the following URL in firefox http://█████████/scripts/ctredirector.dll//?@_FILEhttp://google.com/%3Csvg/onload=confirm(document.cookie)%3E%3E@_TEXTDESCRIPTIONEN
Product, Version, and Configuration (If applicable)
Corda Server
Suggested Mitigation/Remediation Actions
Update corda
Impact
An attacker can steal session cookies and conduct sophisticated phishing campaigns using this exploit
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 ctredirector.dll reflects the @_FILE parameter without sanitisation and allows the @_TEXTDESCRIPTIONEN parameter to set the response content type to text/html.
Impact
An attacker could steal session cookies and conduct phishing campaigns, though the report rates the impact as medium.
What the attacker needed
Victim clicks a crafted link; Firefox browser
The fix
The report only suggests updating Corda; the proper fix would be to sanitise the reflected parameter and prevent user-controlled content type changes.
How it was found
- Open the crafted URL in Firefox.
- The @_FILE parameter causes an error that reflects the supplied value.
- The @_TEXTDESCRIPTIONEN parameter makes the page render as text/html, executing the script.
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 web page can be tricked into showing attacker-supplied text as if it were part of the site. Here, two URL parameters work together: one puts a script into an error message, and the other tells the browser to treat the page as HTML, so the script runs. That lets an attacker run code in a victim's browser and potentially read their cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.