Skip to content
Path traversal Disclosed report Beginner

fix(security):Path Traversal Bug

Unsanitised input from a command-line argument is passed directly to a file-reading function, allowing an attacker to read arbitrary files. The report states this is a path traversal vulnerability in the source code of Fabric.

bhaskar_ram Follow

Originally disclosed on HackerOne

  • Disclosed after 2 days

Unsanitized input from CLI argument flows into io.ioutil.ReadFile, where it is used as a path. This may result in a Path Traversal vulnerability and allow an attacker to read arbitrary files.

See this fix : https://github.com/hyperledger/fabric/pull/3573

Impact

There is a path traversal vulnerability in the source code of fabric

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

Impact

An attacker could read arbitrary files accessible to the process.

What the attacker needed

Ability to supply a CLI argument

The fix

A fix is referenced in a linked pull request; the text does not describe what it changes.

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 program takes a file path from the user on the command line and opens it without checking where it points. Because of that, someone can supply a path that escapes the intended folder and read any file the program is allowed to access.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.