Unauthenticated Local PHP File Inclusion in WordPress Age Gate
Age Gate for WordPress through version 3.5.3 contains a local PHP file inclusion vulnerability in its handling of the lang parameter. An unauthenticated attacker can cause the plugin to include arbitrary PHP files resident on the server and execute code contained in those files. The issue may enable access-control bypass, disclosure of sensitive data, or code execution when attacker-controlled content, including files accepted as ostensibly safe types, can be uploaded and subsequently included.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can bypass access controls, expose sensitive data, and execute PHP code contained in included server-side files. Code execution is possible where an attacker can arrange for a file containing executable PHP to be uploaded and included.
If you can’t patch tonight, do this now.
Until remediation is applied, disable the plugin or block access to the vulnerable functionality. Apply a strict allowlist for accepted language values at the application or web application firewall layer if operationally feasible. Reduce the likelihood of code execution by preventing uploads of executable content, hardening upload validation, disabling execution in upload-accessible directories, and enforcing least-privilege filesystem permissions for the web server account. Monitor for anomalous requests targeting the lang parameter and for unexpected inclusion-related errors or execution behavior.
Patch, then assume compromise.
Update the Age Gate plugin to a version newer than 3.5.3 if a vendor fix is available. If no patched release is available, remove or disable the vulnerable plugin. Review and correct the code path handling the lang parameter so that it cannot influence filesystem inclusion of arbitrary local resources; language selection should be restricted to a fixed allowlist of expected values mapped to known-safe files. Validate and canonicalize input, avoid dynamic include operations based on user input, and ensure included resources are non-executable data where possible. Review the server for unauthorized uploaded content and rotate secrets if compromise is suspected.
No public exploits tracked yet. Mallory keeps watching.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.