Restrictions for BuddyPress <= 1.5.4 Remote Code Execution (CVE-2026-120539)
Detects exploitation of CVE-2026-120539, a critical (CVSS 9.8) Remote Code Execution vulnerability in the Restrictions for BuddyPress WordPress plugin (all versions up to and including 1.5.4). The flaw is a code injection issue (CWE-95): the plugin splices the attacker-controlled request URI into a PHP expression inside a double-quoted string and evaluates it with eval(). Because PHP interpolates double-quoted strings, a payload of the form {${...}} in the URL path runs during interpolation, so no quote breakout is needed. The affected conditions are enabled by default and are evaluated before any logged-in check, so an unauthenticated attacker can execute arbitrary PHP with a single GET request. The site must have BuddyPress and Paid Memberships Pro active alongside this plugin. Detection focuses on HTTP requests to the plugin's endpoints carrying PHP code constructs, and on post-exploitation web-shell or child-process behavior spawned from the WordPress PHP worker. Fixed in version 1.5.5.
Vulnerability Intelligence
TheoreticalWeakness (CWE)
Timeline
- Disclosed
- November 21, 2026
References & Proof of Concept
- https://github.com/seventhqueen/buddypress-restrict/releases/tag/1.5.5
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-admin.php#L213
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-pmpro.php#L184
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-pmpro.php#L187
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/includes/class-bp-restrict.php#L172
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/includes/class-bp-restrict.php#L210
- https://www.wordfence.com/threat-intel/vulnerabilities/id/fab68c0b-2211-4cc4-a112-f0011f9d72ed?source=cve
CVSS
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
What is CVE-2026-120539 Restrictions for BuddyPress <= 1.5.4 Remote Code Execution (CVE-2026-120539)?
Restrictions for BuddyPress <= 1.5.4 Remote Code Execution (CVE-2026-120539) (CVE-2026-120539) maps to the Initial Access and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.
This page provides production-ready detection logic for Restrictions for BuddyPress <= 1.5.4 Remote Code Execution (CVE-2026-120539), covering the data sources and telemetry it touches: IIS Logs, Web Server Logs, WAF. The queries below are rated critical severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.
MITRE ATT&CK
- Tactic
- Initial Access Execution
// df00tech DF00-f20ad46a84 · https://df00tech.com/detections/CVE-2026-120539 · licence: https://df00tech.com/detections/licence
let suspiciousPhp = dynamic(["base64_decode","eval(","system(","shell_exec","passthru","assert(","call_user_func","create_function","phpinfo(","file_put_contents","<?php"]);
W3CIISLog
| where csUriStem has_any ("/wp-admin/admin.php", "/wp-admin/options.php", "/wp-admin/admin-post.php", "/wp-admin/admin-ajax.php")
| where csUriQuery has_any ("bp-restrict", "bp_restrict", "bp-restrict-pmpro")
| extend decodedQuery = url_decode(csUriQuery)
| where decodedQuery has_any (suspiciousPhp)
| project TimeGenerated, cIP, csMethod, csUriStem, csUriQuery, decodedQuery, scStatus, csUserAgent, Computer
| order by TimeGenerated desc Flags requests to WordPress admin endpoints referencing the bp-restrict plugin whose (URL-decoded) query string contains PHP code-execution primitives, indicating attempted code injection against CVE-2026-120539.
Data Sources
Required Tables
False Positives
- Legitimate plugin configuration where an administrator pastes PHP-looking snippets into restriction rule fields
- Security scanners and automated vulnerability assessment tools probing the endpoint
- Penetration testing or purple-team exercises against the WordPress host
Query fingerprint DF00-f20ad46a84 · licence
Sigma logsource & community rules
The detection logic for Restrictions for BuddyPress <= 1.5.4 Remote Code Execution (CVE-2026-120539) (CVE-2026-120539) above is provided in a vendor-neutral
form so you can deploy it on any SIEM. The same logic is shipped here as native
KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the
following logsource:
logsource:
product: windows Browse the community-maintained Sigma rules for this technique:
Platform-specific guides for CVE-2026-120539
References (4)
- https://www.wordfence.com/threat-intel/vulnerabilities/id/fab68c0b-2211-4cc4-a112-f0011f9d72ed?source=cve
- https://github.com/seventhqueen/buddypress-restrict/releases/tag/1.5.5
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/admin/class-bp-restrict-admin.php#L213
- https://plugins.trac.wordpress.org/browser/bp-restrict/tags/1.5.4/includes/class-bp-restrict.php#L172
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Simulated bp-restrict code-injection request
Expected signal: Web access log entry for /wp-admin/admin.php with bp-restrict and eval/base64_decode in the query string.
- Test 2 Simulated PHP worker spawning shell
Expected signal: Process creation of /bin/sh or id/uname parented by the php process.
- Test 3 Simulated web shell drop in uploads
Expected signal: File creation event for a new .php file under wp-content/uploads.
Response Playbook
Triage
- Confirm the installed version of the Restrictions for BuddyPress (bp-restrict) plugin on the affected WordPress host; versions <= 1.5.4 are vulnerable, 1.5.5 is patched.
- Review the flagged web request: extract the source IP, decoded query/body, targeted endpoint, HTTP response status, and whether the PHP primitive reached a plugin handler.
- Correlate the request timestamp with endpoint process telemetry for child processes spawned by the php/php-fpm/web-server worker within the same window.
- Confirm whether BuddyPress and Paid Memberships Pro are active, since both are required for the vulnerable code path.
Containment
- Block the attacking source IP(s) at the WAF/edge and rate-limit or restrict access to /wp-admin/ for the affected site.
- Isolate the WordPress host from the network if post-exploitation child processes or web shells are confirmed.
- Disable the bp-restrict plugin and upgrade to version 1.5.5 or later; rotate WordPress admin and database credentials if compromise is confirmed.
Evidence Collection
- Preserve web server access/error logs, WAF logs, and PHP-FPM logs covering the attack window.
- Capture a forensic image or at minimum the WordPress webroot (wp-content/plugins, wp-content/uploads) to identify dropped web shells and modified files.
- Export process-execution telemetry showing any children of php/php-fpm/httpd/w3wp around the event.
Escalation Criteria
- ! Escalate to incident response if a web shell, reverse shell, or non-standard child process of the PHP worker is confirmed.
- ! Escalate if the exploitation request returned HTTP 200 with evidence of code execution, or if lateral movement / credential access from the host is observed.
Investigation Guide
Forensic Artifacts
- >
New or recently modified PHP files under wp-content/ (plugins, uploads, themes) indicating a dropped web shell - >
Web server and PHP-FPM log entries showing bp-restrict requests with code primitives - >
Process-execution records of shells or recon tools parented by php/php-fpm/web-server processes
Tuning Guidance
Baseline normal administrator interaction with the bp-restrict settings pages; if legitimate configuration never contains PHP tokens, tighten the regex to alert on any code primitive. Reduce noise by scoping the web-log queries to the hosts actually running WordPress with the plugin installed, and by excluding known scanner IP ranges and authorized pentest sources. Pair the web-log detections with the endpoint child-process query to prioritize alerts that show actual execution.
Hunting Queries
Aggregates bp-restrict exploitation attempts by source IP to surface scanning or repeated targeting of CVE-2026-120539.
// df00tech DF00-f20ad46a84 · https://df00tech.com/detections/CVE-2026-120539 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriQuery has_any ("bp-restrict","bp_restrict") | extend d=url_decode(csUriQuery) | where d has_any ("eval(","base64_decode","<?php","shell_exec") | summarize count() by cIP, bin(TimeGenerated, 1h) ``` df00tech DF00-f20ad46a84 · https://df00tech.com/detections/CVE-2026-120539 · licence: https://df00tech.com/detections/licence ```
index=web uri_query="*bp-restrict*" | eval d=urldecode(uri_query) | where match(d,"(?i)(eval\(|base64_decode|<\?php|shell_exec)") | stats count by src_ip Atomic Red Team Tests
Send a crafted HTTP request to the bp-restrict endpoint containing a PHP eval primitive to validate web-log detection coverage (lab only).
Command
curl -s -o /dev/null 'http://wp-lab.local/wp-admin/admin.php?page=bp-restrict&code=eval(base64_decode(%22cGhwaW5mbygpOw==%22))' Cleanup
echo 'No persistent change; clear test entries from web logs if desired.' Expected Telemetry
Web access log entry for /wp-admin/admin.php with bp-restrict and eval/base64_decode in the query string.
Expected Detection
kql, spl, elastic_eql, qradar_aql, sumo_logic and chronicle_yaral rules fire on the decoded PHP primitive.
Emulate post-exploitation by having a PHP process execute a shell command, validating endpoint child-process detection (lab only).
Command
php -r 'system("id; uname -a");' Cleanup
echo 'No cleanup required; command is read-only recon.' Expected Telemetry
Process creation of /bin/sh or id/uname parented by the php process.
Expected Detection
crowdstrike_cql ProcessRollup2 query flags the shell/recon child of php.
Create a benign marker PHP file in the uploads directory to emulate a dropped web shell for file-artifact hunting (lab only).
Command
echo '<?php /* lab-test marker */ echo "argus-test"; ?>' > /var/www/html/wp-content/uploads/argus-test-shell.php Cleanup
rm -f /var/www/html/wp-content/uploads/argus-test-shell.php Expected Telemetry
File creation event for a new .php file under wp-content/uploads.
Expected Detection
Forensic artifact hunt surfaces the newly created PHP file under wp-content/uploads.
Related Detections
Tactic Hubs
Related Techniques
Same Tactic: Initial Access
Browse by tactic
- Reconnaissance TA0043
- Resource Development TA0042
- Initial Access TA0001
- Execution TA0002
- Persistence TA0003
- Privilege Escalation TA0004
- Stealth TA0005
- Defense Impairment TA0112
- Credential Access TA0006
- Discovery TA0007
- Lateral Movement TA0008
- Collection TA0009
- Command and Control TA0011
- Exfiltration TA0010
- Impact TA0040