You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(security): Resolve false-equivalency capture in LHS assignment taint tracking #123
The SecurityLens module currently uses a naive string match ("=" in line) to isolate the Left-Hand Side (LHS) of a variable assignment for downstream taint tracking. This creates a catastrophic false-equivalency capture when evaluating comparison operators (e.g., if (status === 200) or if (x <= 5)), causing the engine to falsely flag structural keywords (like if) as tainted variables and triggering false-positive RCE/Injection alerts across the entire file.
Proposed Fix:
Implement a bounded regex check re.search(r"[=!<>]=", line) before attempting assignment splitting to safely ignore lines containing standard comparison operators.
Change this:
# Scenario B: Left-Hand Side (LHS) Assignment Extractionifhas_ioorhas_llm:
assign_op=":="if":="inlineelse"="if"="inlineelseNoneifassign_op:
lhs=line.split(assign_op)[0]
Activity
squid-protocol commentedon Jul 6, 2026
closed with #124
fix(security): resolve false-equivalency capture in LHS assignment ta…
Fix/597 markdown strict parsing (#689)