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.
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
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.