nyx/tests/dynamic_fixtures/class_method/php/vuln.php

15 lines
367 B
PHP
Raw Permalink Normal View History

2026-06-05 10:16:30 -05:00
<?php
// Phase 19 (Track M.1) — class-method vuln fixture for PHP.
//
// UserService::run concatenates user input into a shell command;
// default ctor, no stubbed deps needed.
class UserService {
public function __construct() {}
public function run($input) {
// SINK: tainted input → shell.
return shell_exec('true ' . $input);
}
}