CVE-2024-7420: Insert PHP Code Snippet - Cross-Site Request Forgery
- Cve: CVE-2024-7420
- Name: Insert PHP Code Snippet - Cross-Site Request Forgery
- Description: The Insert PHP Code Snippet plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 1.3.6. This is due to missing or incorrect nonce validation in the /admin/snippets.php file. This makes it possible for unauthenticated attackers to activate/deactivate and delete code snippets via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. CVE-2024-43275 appears to be a duplicate of this issue.
- Impact: Unauthenticated attackers can activate, deactivate, or delete code snippets, potentially leading to site defacement or malicious code execution.
- Remediation: Update to version 1.3.7 or later with proper nonce validation implemented.
- Vulnerability type: cross_site_request_forgery
- Requirement type: user_interaction
- Requirements: Attacker needs to trick a site administrator into clicking a malicious link
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- Epss score: 0.00247
- Epss percentile: 0.16131
- Assignee: [email protected]
- Published at: 2024-08-15T03:15:04Z
- Age in days: 831
- Modified at: 2026-06-17T08:20:03Z
- Patch available: yes
- References total: 3
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-7420
- Nvd status: modified
- Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-352 | Cross-Site Request Forgery |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| xyzscripts:insert_php_code_snippet | < 1.3.7 | no | nvd | /v1/products/xyzscripts/insert_php_code_snippet |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts