HexBrain

U.S. Dept Of Defense · Report #374057

Corda Server XSS ████████

Validstatus
mediumseverity
7upvotes
2 Dec 2019disclosed

Summary

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

How it was found

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

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original