Skip to content

Commit

Permalink
Hook fugio_unserialize for old PHP compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wunused committed Jun 22, 2023
1 parent b8671a4 commit 8047a04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Files/sensitive_functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


unserialize|1
fugio_unserialize|1
# ==== NEED TO SET VULN INJECT POINT NUMBERS!! ====
copy|1
file_exists|1
Expand Down
2 changes: 1 addition & 1 deletion Utils/HookFiles/HookHead.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function get_declared_traits_r353t() {

function filter_allowed_classes($array, $trigger_func, $func_argv) {
$return_array = $array;
if ($trigger_func == "unserialize" && count($func_argv) > 1) {
if (($trigger_func == "unserialize" || $trigger_func == "fugio_unserialize") && count($func_argv) > 1) {
if (array_key_exists("allowed_classes", $func_argv[1])) {
if (gettype($func_argv[1]["allowed_classes"]) == "boolean") {
if ($func_argv[1]["allowed_classes"] == false) {
Expand Down

0 comments on commit 8047a04

Please sign in to comment.