YOURLS 1.8.2 - Cross-Site Request Forgery (CSRF)
YOURLS 1.8.2 - Cross-Site Request Forgery (CSRF)
AI Analysis
Technical Summary
The security threat concerns a Cross-Site Request Forgery (CSRF) vulnerability in YOURLS version 1.8.2, an open-source URL shortening application widely used for managing and creating short URLs. CSRF vulnerabilities allow attackers to induce authenticated users to submit unwanted requests to a web application in which they are currently authenticated, potentially leading to unauthorized actions such as creating, modifying, or deleting shortened URLs. This can undermine the integrity of the URL shortening service, potentially redirecting users to malicious sites or disrupting service availability. The exploit code is publicly available, increasing the risk of exploitation. The vulnerability requires the victim to be logged into the YOURLS application and to visit a malicious website that triggers the forged request. No patches or official fixes have been linked, suggesting that users must implement manual mitigations or upgrade if newer versions address the issue. While no known exploits in the wild have been reported, the presence of exploit code indicates a credible threat. YOURLS is often deployed in small to medium enterprises and organizations that require custom URL shortening services, making this vulnerability relevant to those environments. The lack of a CVSS score necessitates an independent severity assessment, which is medium given the potential for unauthorized actions but limited by the need for user authentication and interaction.
Potential Impact
For European organizations, the CSRF vulnerability in YOURLS 1.8.2 could result in unauthorized manipulation of URL shortening services, leading to potential redirection of users to malicious websites, loss of trust, and reputational damage. This could also facilitate phishing campaigns or malware distribution if attackers alter shortened URLs to point to harmful destinations. Organizations relying on YOURLS for internal or external URL management may face service disruption or data integrity issues. The impact is particularly significant for public-facing services or those integrated into broader marketing or communication platforms. Confidentiality impact is low since the vulnerability does not directly expose sensitive data, but integrity and availability could be compromised. The requirement for user authentication and interaction limits the scope but does not eliminate risk, especially in environments with many users or high traffic. European entities with digital marketing, e-commerce, or public communication functions using YOURLS are at higher risk.
Mitigation Recommendations
To mitigate this CSRF vulnerability, organizations should first check for and apply any available updates or patches from the YOURLS project that address CSRF protections. If no official patch exists, implement anti-CSRF tokens in all forms and state-changing requests within YOURLS to ensure requests are legitimate. Employ Content Security Policy (CSP) headers to restrict the sources of executable scripts and reduce the risk of malicious site interactions. Encourage users to log out of YOURLS sessions when not in use and educate them about the risks of visiting untrusted websites while authenticated. Consider deploying web application firewalls (WAFs) with rules to detect and block CSRF attack patterns. Additionally, review and harden session management policies, including setting secure, HttpOnly cookies and limiting session lifetimes. For organizations with development resources, consider contributing patches or custom fixes to the YOURLS codebase to enforce CSRF protections. Regularly audit and monitor YOURLS logs for suspicious activities indicative of CSRF exploitation attempts.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Italy, Spain
Indicators of Compromise
- exploit-code: # Exploit Title: YOURLS 1.8.2 - Cross-Site Request Forgery (CSRF) # Date: 2025-11-25 # Exploit Author: CodeSecLab # Vendor Homepage: https://github.com/yourls/yourls/ # Software Link: https://github.com/yourls/yourls/ # Version: 1.8.2 # Tested on: Windows # CVE : CVE-2022-0088 Proof Of Concept <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CSRF PoC</title> </head> <body> <h1>CSRF Proof of Concept</h1> <form action="http://yourls/admin/index.php" method="GET"> <input type="hidden" name="action" value="logout"> <input type="submit" value="Submit CSRF Request"> </form> <script> document.forms[0].submit(); </script> </body> </html> This HTML page, when visited by an authenticated user of the vulnerable application, will automatically submit a request to log the user out without their consent, demonstrating the CSRF vulnerability. Steps to Reproduce Save the following code as poc.html. Log in yourls, and open the file in the same browser. Observe the result.
YOURLS 1.8.2 - Cross-Site Request Forgery (CSRF)
Description
YOURLS 1.8.2 - Cross-Site Request Forgery (CSRF)
AI-Powered Analysis
Technical Analysis
The security threat concerns a Cross-Site Request Forgery (CSRF) vulnerability in YOURLS version 1.8.2, an open-source URL shortening application widely used for managing and creating short URLs. CSRF vulnerabilities allow attackers to induce authenticated users to submit unwanted requests to a web application in which they are currently authenticated, potentially leading to unauthorized actions such as creating, modifying, or deleting shortened URLs. This can undermine the integrity of the URL shortening service, potentially redirecting users to malicious sites or disrupting service availability. The exploit code is publicly available, increasing the risk of exploitation. The vulnerability requires the victim to be logged into the YOURLS application and to visit a malicious website that triggers the forged request. No patches or official fixes have been linked, suggesting that users must implement manual mitigations or upgrade if newer versions address the issue. While no known exploits in the wild have been reported, the presence of exploit code indicates a credible threat. YOURLS is often deployed in small to medium enterprises and organizations that require custom URL shortening services, making this vulnerability relevant to those environments. The lack of a CVSS score necessitates an independent severity assessment, which is medium given the potential for unauthorized actions but limited by the need for user authentication and interaction.
Potential Impact
For European organizations, the CSRF vulnerability in YOURLS 1.8.2 could result in unauthorized manipulation of URL shortening services, leading to potential redirection of users to malicious websites, loss of trust, and reputational damage. This could also facilitate phishing campaigns or malware distribution if attackers alter shortened URLs to point to harmful destinations. Organizations relying on YOURLS for internal or external URL management may face service disruption or data integrity issues. The impact is particularly significant for public-facing services or those integrated into broader marketing or communication platforms. Confidentiality impact is low since the vulnerability does not directly expose sensitive data, but integrity and availability could be compromised. The requirement for user authentication and interaction limits the scope but does not eliminate risk, especially in environments with many users or high traffic. European entities with digital marketing, e-commerce, or public communication functions using YOURLS are at higher risk.
Mitigation Recommendations
To mitigate this CSRF vulnerability, organizations should first check for and apply any available updates or patches from the YOURLS project that address CSRF protections. If no official patch exists, implement anti-CSRF tokens in all forms and state-changing requests within YOURLS to ensure requests are legitimate. Employ Content Security Policy (CSP) headers to restrict the sources of executable scripts and reduce the risk of malicious site interactions. Encourage users to log out of YOURLS sessions when not in use and educate them about the risks of visiting untrusted websites while authenticated. Consider deploying web application firewalls (WAFs) with rules to detect and block CSRF attack patterns. Additionally, review and harden session management policies, including setting secure, HttpOnly cookies and limiting session lifetimes. For organizations with development resources, consider contributing patches or custom fixes to the YOURLS codebase to enforce CSRF protections. Regularly audit and monitor YOURLS logs for suspicious activities indicative of CSRF exploitation attempts.
Affected Countries
Technical Details
- Edb Id
- 52446
- Has Exploit Code
- true
- Code Language
- text
Indicators of Compromise
Exploit Source Code
Exploit code for YOURLS 1.8.2 - Cross-Site Request Forgery (CSRF)
# Exploit Title: YOURLS 1.8.2 - Cross-Site Request Forgery (CSRF) # Date: 2025-11-25 # Exploit Author: CodeSecLab # Vendor Homepage: https://github.com/yourls/yourls/ # Software Link: https://github.com/yourls/yourls/ # Version: 1.8.2 # Tested on: Windows # CVE : CVE-2022-0088 Proof Of Concept <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0">... (681 more characters)
Threat ID: 692f27653286267b25e73fe7
Added to database: 12/2/2025, 5:52:37 PM
Last enriched: 12/23/2025, 11:22:43 PM
Last updated: 1/19/2026, 8:39:45 PM
Views: 47
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CrashFix Chrome Extension Delivers ModeloRAT Using ClickFix-Style Browser Crash Lures
Medium⚡ Weekly Recap: Fortinet Exploits, RedLine Clipjack, NTLM Crack, Copilot Attack & More
Medium‘SolyxImmortal’ Information Stealer Emerges
MediumSecurity Bug in StealC Malware Panel Let Researchers Spy on Threat Actor Operations
LowSiklu EtherHaul Series EH-8010 - Remote Command Execution
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.