mirror of
https://github.com/elicpeter/nyx.git
synced 2026-07-03 20:41:00 +02:00
Dynamic (#77)
This commit is contained in:
parent
55247b7fcd
commit
991c84a1eb
1464 changed files with 225448 additions and 1985 deletions
7
tests/dynamic_fixtures/websocket/socketio/benign.py
Normal file
7
tests/dynamic_fixtures/websocket/socketio/benign.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
"""Phase 21 — python-socketio benign control."""
|
||||
_NYX_ADAPTER_MARKER = "import socketio"
|
||||
|
||||
|
||||
def message(sid, data):
|
||||
_ = (sid, data)
|
||||
return "accepted"
|
||||
14
tests/dynamic_fixtures/websocket/socketio/vuln.py
Normal file
14
tests/dynamic_fixtures/websocket/socketio/vuln.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"""Phase 21 (Track M.3) — python-socketio handler vuln fixture.
|
||||
|
||||
`message(sid, data)` is a Socket.IO event handler. It splices the
|
||||
inbound message into a shell command via `os.system`.
|
||||
"""
|
||||
import os
|
||||
|
||||
_NYX_ADAPTER_MARKER = "import socketio"
|
||||
_NYX_EVENT_MARKER = "@sio.on('message')"
|
||||
|
||||
|
||||
def message(sid, data):
|
||||
# SINK: tainted message body concatenated into shell command.
|
||||
os.system("echo " + str(data))
|
||||
Loading…
Add table
Add a link
Reference in a new issue