Download src/php/php-src/ext/curl/tests/bug73147.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 299 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug73147.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/curl/tests/bug73147.phpt
-
curl -L -o bug73147.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug73147.phpt
299 Bytes
| --TEST-- | |
| Bug #73147: Use After Free in PHP7 unserialize() | |
| --EXTENSIONS-- | |
| curl | |
| --FILE-- | |
| $poc = 'a:1:{i:0;O:8:"CURLFile":1:{s:4:"name";R:1;}}'; | |
| try { | |
| var_dump(unserialize($poc)); | |
| } catch(Exception $e) { | |
| echo $e->getMessage(); | |
| } | |
| --EXPECT-- | |
| Unserialization of 'CURLFile' is not allowed | |