Repository navigation
Report a value after a literal URL start again once a builtin cuts the string - #15485
Conversation
|
bugbot review |
✅ Performance: unchanged · Types: unchanged · Taint: +12 −17
How to read this table
✅ laravel: issues +8 −0Memory 1 799.1 → 1 805.0 MB (+0.3 %) · Wall 113.2 → 114.4 s (+1.0 %) Taint 806 → 814 (+8 −0)
Added (8)
✅ symfony: issues +4 −17Memory 3 635.5 → 3 622.8 MB (−0.4 %) · Wall 224.5 → 229.6 s (+2.2 %) Taint 1 775 → 1 762 (+4 −17)
Added (4)
Removed (17)
head bb1e475 · base 0c62562 (merge-base) · workflow run |
…ing str_repeat() repeats
|
bugbot review |
| string $label, | ||
| CodeLocation $call_location, | ||
| ): array { | ||
| $parent_nodes = $statements_analyzer->node_data->getType($expr)->parent_nodes ?? []; |
There was a problem hiding this comment.
Null type dereference in callable flow
Medium Severity
In getNodesChangedByCallables, the code reads parent_nodes via getType($expr)->parent_nodes while the null-coalescing operator only applies to parent_nodes, not getType. When node_data->getType($expr) is null, taint analysis can throw before shadow restoration is wired for by-reference callable flows.
Reviewed by Cursor Bugbot for commit 33fe00d. Configure here.
There was a problem hiding this comment.
False positive: ?? also covers a null to the left of -> (php -r '$x = null; var_dump($x->a ?? []);' gives array(0) {}, no warning), and Psalm accepts it.
|
bugbot review |
|
bugbot review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
1 issue from previous review remains unresolved.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit bb1e475. Configure here.


Stacked on #15205: review and merge that one first.
Psalm misses a redirect or SSRF target chosen by a value after a literal URL start when a builtin cuts that start off.
Before
After
Unchanged, before and after
A builtin, or a method or constructor of a builtin class, cuts the string unless it is listed as keeping its start (
START_KEEPING_FLOWS, andkeepsinInternalTaintObjectFlowMap.php).