Skip to content

Mark the paths of the filesystem functions as Psalm file taint sinks - #102

Open
danog wants to merge 1 commit into
amphp:4.xfrom
danog:taint-sinks
Open

danog wants to merge 1 commit into
amphp:4.xfrom
danog:taint-sinks

Conversation

@danog

@danog danog commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Psalm doesn't analyse vendor code, so its taint analysis loses track of a user-controlled path once it's passed to Amp\File\read(), write(), openFile() and the like. This marks the path parameters of the functions that open, read, write, create, delete, move, link or change a file or directory as file sinks, as Psalm does for the matching native functions.

https://claude.ai/code/session_016B9dWRw6Lako9sXAWMtWAx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant