nyx/tests/dynamic_fixtures/python/cmdi_unsupported.py

12 lines
316 B
Python
Raw Permalink Normal View History

2026-06-05 10:16:30 -05:00
"""Command injection — unsupported fixture.
Low-confidence finding that produces Unsupported(ConfidenceTooLow).
Expected verdict: Unsupported(ConfidenceTooLow)
"""
import subprocess
def process_request(cmd):
"""Vulnerable function used in unsupported-confidence test."""
subprocess.run(cmd, shell=True)