World-writable chmod mode
What a world-writable-permission finding of fallow security means, why it matters and how to fix it.
What it reports
Catalogue security candidate for CWE-732.
Security explains how fallow finds it.
Why it matters
Mode 0o777 lets every user on the machine change the file. Another process can replace its content, for example a script that the application runs later.
Example
fs.chmodSync(scriptPath, 0o777);
Fix
Review the candidate trace before acting. Confirm attacker control, missing sanitization, and reachable runtime context, then fix with the category-appropriate safer API or add a reviewed suppression.
Facts
| Fact | Value |
|---|---|
| Issue type | world-writable-permission |
| Rule id in SARIF output | security/world-writable-permission |
| Command | fallow security |
| Default severity | off |
| Suppression comment | // fallow-ignore-next-line security-sink |
Fixable with fallow fix | No |
| Opt-in | Yes |
Note. Tainted-sink catalogue category; the security-sink suppression token covers every category.