Skip to content
Fallow home
All docs pages

Docs home

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

FactValue
Issue typeworld-writable-permission
Rule id in SARIF outputsecurity/world-writable-permission
Commandfallow security
Default severityoff
Suppression comment// fallow-ignore-next-line security-sink
Fixable with fallow fixNo
Opt-inYes

Note. Tainted-sink catalogue category; the security-sink suppression token covers every category.