mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-04-28 23:19:39 +00:00
test(security): add failing test for HIGH-1 prototype pollution
Three PoC fixtures (tool name, bash command, model name) reproduce the audit's HIGH-1 attack. Tests assert Object.prototype.calls stays undefined after parsing. They fail against current parser.ts -- Task 3 will close the pollution sink with Object.create(null).
This commit is contained in:
parent
f2d1753d3a
commit
e890d9bfc3
4 changed files with 80 additions and 0 deletions
1
tests/fixtures/security/proto-bash.jsonl
vendored
Normal file
1
tests/fixtures/security/proto-bash.jsonl
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"type":"assistant","sessionId":"security-test","timestamp":"2026-04-16T00:00:00Z","message":{"id":"pwn-bash","type":"message","role":"assistant","model":"claude-opus-4-6","content":[{"type":"tool_use","id":"b1","name":"Bash","input":{"command":"/x/__proto__"}}],"usage":{"input_tokens":1,"output_tokens":1}}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue