LiveActive security incident?Get immediate response
CVE Record

CVE-2024-0658: Insert PHP Code Snippet <= 1.3.4 - Authenticated (Admin+) Stored Cross-Site Scripting

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.

MediumCVSS 4.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This is a stored cross-site scripting flaw in a WordPress plugin. It requires an attacker to already have administrator-level access, and it only matters in multisite setups or where unfiltered_html is disabled. Business risk is limited but real: a compromised admin account could leave script content that runs for later visitors to the affected management page.

Executive priority

Treat as a near-term hygiene fix, not an emergency unless admin compromise is suspected. Prioritize sites with multisite, many administrators, or hardened configurations that disable unfiltered_html. Combine remediation with administrator account review because exploitation requires privileged access.

Technical view

Insert PHP Code Snippet for WordPress through version 1.3.4 insufficiently sanitizes and escapes the user name on the insert-php-code-snippet-manage page. The result is authenticated admin-level stored XSS, CWE-79, with CVSS 3.1 score 4.4. The source notes impact only for multisite installations or installations where unfiltered_html has been disabled.

Likely exposure

Exposure is likely limited to WordPress sites using Insert PHP Code Snippet version 1.3.4 or earlier, with multisite enabled or unfiltered_html disabled. Sites without this plugin, newer fixed versions, or standard single-site admin HTML behavior are less likely to be affected based on the provided description.

Exploitation context

The bundle does not show CISA KEV listing or other evidence of active exploitation. The attack requires administrator-level authentication and a specific affected configuration, raising the practical barrier. It is still useful for post-compromise persistence or tampering if an admin account is already abused.

Researcher notes

The key exposure constraint is important: admin-level access alone is not enough unless multisite or disabled unfiltered_html makes the sanitization gap meaningful. The provided affected metadata is sparse, so rely on the narrative description and vendor references for version scope. No source in the bundle confirms active exploitation.

Mitigation direction

  • Identify whether Insert PHP Code Snippet is installed and its exact version.
  • Update to a vendor-fixed version if available through WordPress plugin guidance.
  • Disable or remove the plugin if no fixed version is available.
  • Restrict administrator accounts and review recent admin account changes.
  • Review vendor and Wordfence guidance before relying on compensating controls.

Validation and detection

  • Check plugin inventory for Insert PHP Code Snippet version 1.3.4 or earlier.
  • Confirm whether the WordPress instance is multisite or has unfiltered_html disabled.
  • Review administrator user names for suspicious script-like content.
  • Review WordPress admin access logs for unexpected administrator activity.
  • Confirm the referenced WordPress Trac change is present in the deployed plugin code.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-79: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2024-0658 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
4.4 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
4.4CVSS 3.1MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N1.32.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

4.4Medium
CVSS 3.1 vector shape for CVE-2024-0658Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
f1logicInsert PHP Code Snippet0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-79 · source CWE mapping

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.