Skip to content

External Variable Modification · passage 5 of 6

Global Variable Injection

2 code blocks · External Variable Modification/README.md

For testing systems you own or are authorised to test, and for defending them. Nothing here is run by this page.

Open this passage on GitHub

:warning: As of PHP 8.1.0, write access to the entire `$GLOBALS` array is no longer supported. Overwriting `$GLOBALS` when an application calls `extract` function on untrusted value:

extract($_GET);

An attacker can manipulate **global variables**:

http://example.com/vuln.php?GLOBALS[admin]=1

Source: External Variable Modification/README.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.

Data as of 2026-11-14. CVE List through 2026-11-14 · EPSS of 2026-11-13 · CISA KEV checked 2026-11-14. Source: PayloadsAllTheThings by Swissky and contributors, MIT License. For authorised testing only.

Updated AboutDevelopersSign in