feat(three-stage-scan): add aliased-sink mutation the regex scan misses

This commit is contained in:
Marius Ciepluch
2026-09-04 11:50:44 +02:00
parent fe300e6352
commit 7398063b79
5 changed files with 81 additions and 1 deletions
@@ -0,0 +1,13 @@
"""Mutation of os.system: the callable is aliased before use so a same-line regex misses it."""
import os
from flask import Flask, request
app = Flask(__name__)
run_cmd = os.system
@app.get("/ping")
def ping():
host = request.args["host"]
return run_cmd("ping -c 1 " + host) # CWE-78 mutation: os.system aliased before the call