mirror of
https://github.com/elicpeter/nyx.git
synced 2026-07-18 21:21:03 +02:00
Performance and precision pass (#64)
This commit is contained in:
parent
c7c5e0f3a1
commit
fb698d2c27
97 changed files with 9932 additions and 517 deletions
17
tests/benchmark/corpus/php/ssrf/ssrf_class_method_fopen.php
Normal file
17
tests/benchmark/corpus/php/ssrf/ssrf_class_method_fopen.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
// Regression for the PHP class-method body analysis fix
|
||||
// (declaration_list / interface_declaration / trait_declaration mapped to
|
||||
// Kind::Block in src/labels/php.rs). Before the fix, taint never crossed
|
||||
// `class { method { ... } }` because the body of `method` was never
|
||||
// reached during function extraction, leaving `$_REQUEST → fopen` flows
|
||||
// inside class methods invisible to taint analysis. Pairs with
|
||||
// CVE-2026-33486 (roadiz/documents `DownloadedFile::fromUrl`).
|
||||
|
||||
class MediaImporter
|
||||
{
|
||||
public static function fetchRemote(): void
|
||||
{
|
||||
$url = $_REQUEST['url'];
|
||||
fopen($url, 'r');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue