SecurityContext

CVE-2024-0658: Insert PHP Code Snippet - Stored XSS

  • Cve: CVE-2024-0658
  • Name: Insert PHP Code Snippet - Stored XSS
  • Description: The Insert PHP Code Snippet plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the user's name when accessing the insert-php-code-snippet-manage page in all versions up to, and including, 1.3.4 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level access, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.
  • Impact: Attackers can inject and execute arbitrary scripts on pages, potentially leading to session hijacking, defacement, or data theft.
  • Remediation: Update to the latest version of the plugin where the vulnerability is fixed.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: admin_privileges
  • Requirements: Attacker needs administrator-level access
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00337
  • Epss percentile: 0.27568
  • Assignee: [email protected]
  • Published at: 2024-02-29T01:43:24Z
  • Age in days: 999
  • Modified at: 2026-06-17T06:53:59Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-0658
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3033503%40insert-php-code-snippet&new=3033503%40insert-php-code-snippet&sfp_email=&sfph_mail=nvdPatch
https://www.wordfence.com/threat-intel/vulnerabilities/id/c4a6b786-d0ef-41f6-b2bf-83307ec02b91?source=cvenvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
f1logic:insert_php_code_snippet< 1.3.5nonvd/v1/products/f1logic/insert_php_code_snippet

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts