CVE-2018-7700
High · 8.8CVSS
8.8
EPSS
74.1%
Published
Mar 27, 2018
CISA due date
—
Cloudanix analysis
A flaw in a content management system lets attackers trick administrators into running harmful code on the server just by visiting a malicious page.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- CSRF
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Cross-site request forgery vulnerability allows an attacker to supply a partcode parameter containing a runphp field with embedded PHP code to tag_test_action.php, resulting in arbitrary code execution on the server.
Why it matters to the business
Successful exploitation can lead to full server compromise, data theft, website defacement, or use as a foothold for further attacks; high exploit maturity increases urgency for any remaining unpatched instances despite the issue being public for years.
How an attack unfolds
An attacker prepares a crafted HTTP request embedding PHP code via the partcode parameter targeting tag_test_action.php, then tricks an authenticated administrator into triggering the request through a malicious link or page, causing the server to execute the supplied code.
How to fix it
Upgrade all instances to a patched release that removes the ability to inject executable code through the partcode parameter; apply vendor fixes such as the commits referenced for moodle/moodle (GIT) including b19d180a869d69c66d3f6c72c35ddc9c8dafb935 and 027b757f20c8e50d6fec2ef6f1ff2d85075690fc where applicable, and verify removal of the vulnerable code path.
How to confirm the fix worked
Confirm the application version matches a fixed release, review the tag_test_action.php source to ensure runphp execution is disabled or properly sanitized, and perform authenticated testing to verify CSRF protections are in place.
Typical attack path
- Identify an authenticated user with access to the vulnerable endpoint
- Craft a CSRF payload containing PHP code in the runphp field of the partcode parameter
- Deliver the payload via email, website, or other social engineering vector
- Victim interaction causes the server to process and execute the attacker-supplied PHP
How to detect it
Review web server and application logs for unexpected POST requests to tag_test_action.php containing partcode with runphp references; inspect for PHP code patterns in request parameters from non-trusted sources and correlate with administrator session activity.
- POST requests to /tag_test_action.php containing partcode and runphp
- PHP code snippets such as <?php or eval( in partcode parameter values
- Unexpected file modifications or new PHP files created shortly after requests to tag_test_action.php
What your security team should do
- Immediately inventory all deployments of the affected application and prioritize patching based on exposure
- Implement web application firewall rules to block requests containing runphp or executable code patterns in partcode
- Enforce CSRF tokens on all state-changing endpoints and require re-authentication for sensitive actions
- Monitor for any post-patch indicators of prior compromise given the weaponized exploit maturity
The record
DedeCMS 5.7 has CSRF with an impact of arbitrary code execution, because the partcode parameter in a tag_test_action.php request can specify a runphp field in conjunction with PHP code.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-61826 Bazarr is a companion application to Sonarr and Radarr. CWE-352
- CVE-2026-65566 Cross-Site Request Forgery (CSRF) vulnerability in Meow Apps AI Engine ai-engine allows… CWE-352
- CVE-2026-119466 Cross-Site Request Forgery (CSRF) vulnerability in WPExperts APIExperts Square for… CWE-352
- CVE-2026-45141 Chamilo LMS is an open-source learning management system. CWE-352
- CVE-2026-112374 FOSSBilling before 0.8.9 contains a Cross-Site Request Forgery vulnerability in the staff… CWE-352
- CVE-2026-119426 phpMyAdmin through 5.2.3 contains a cross-site request forgery vulnerability that allows… CWE-352
- CVE-2026-119407 Element Web and Element Desktop before 1.12.32 accept guest credentials from URL fragment… CWE-352
- CVE-2026-118570 Cross-Site Request Forgery (CSRF) vulnerability in Drupal Fasttoggle allows Cross Site… CWE-352