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
harden(pytest): -p <bare-relative-path> bypass via looks_like_path #49
Codex F7 / pre-release review. check_forbidden_pytest_args rejects -p <value> only when looks_like_path(value) returns true. The shared heuristic (with node) requires /, ./, ../, ~/, or Windows drive prefix. Bare attacker_subdir/plugin.py falls through. Pytest's plugin loader is Kernel.require-equivalent on FS paths. Fix: extend the pytest-specific check to also reject any value containing / or \\ even without an explicit leading dot.
Activity
Merge pull request #59 from thehoff/harden/pytest-p-bypass-49
harden(pytest): close -p bare-relative + glued-form bypass (thehoff#49)