Skip to content
XSS Disclosed report Intermediate

Cross Site Scripting Vulnerability in fabric-sdk-py source code

The fabric-sdk-py package used a vulnerable version of jQuery that could execute untrusted HTML passed to DOM manipulation methods. An attacker could run arbitrary code in a victim's browser if they could supply HTML to those methods.

bhaskar_ram Follow

Originally disclosed on HackerOne

  • Disclosed after 41 hours

See this fix on GitHub https://github.com/hyperledger/fabric-sdk-py/pull/175

Impact

Some old affected versions of this package are vulnerable to Cross-site Scripting (XSS). Passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code.

The original report as published on HackerOne, by bhaskar_ram. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 package bundled an outdated jQuery version with a known cross-site scripting flaw in its DOM manipulation methods.

Impact

An attacker could execute untrusted code in a victim's browser, but only if they can pass HTML from an untrusted source to the affected jQuery methods.

What the attacker needed

Use an old affected version; pass untrusted HTML to jQuery methods

The fix

A fix is linked in the pull request, though the text does not detail what it changed.

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.

This report is about a Python library that includes an old version of jQuery, a JavaScript tool for building web pages. That old jQuery can run harmful code if someone gives it HTML from an untrusted source, even if that HTML was cleaned first. The danger is that a malicious person could make a victim's browser do things the victim did not intend.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by bhaskar_ram

View all

8 more disclosed reports, best first.

More from Linux Foundation Decentralized Trust

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.