Cloudanix VulnDB

CVE-2023-49469

Medium · 6.1

CVSS

6.1

EPSS

0.5%

Published

Dec 28, 2023

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in Shaarli's search feature lets attackers trick users into running harmful code in their browsers simply by clicking a crafted link.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Data Exposure
Component
Application
Class
XSS
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Reflected XSS in the search tag function permits injection of arbitrary JavaScript that executes in the victim's browser context with the application's origin.

Why it matters to the business

Attackers can steal user sessions, perform actions on behalf of users, or deliver malware through the bookmarking service, potentially exposing sensitive links and user data across deployed instances.

How an attack unfolds

An attacker crafts a malicious URL containing a script payload in the search tag parameter, then tricks a user into visiting it; the application reflects the payload without sanitization, executing the script in the browser. Public exploit code is available and the vulnerability has been known for nearly three years.

How to fix it

Upgrade shaarli/shaarli to commit df121586c1814ce624afea14c80b3144363d49b8 or later. If immediate upgrade is not possible, restrict or sanitize input to the search tag function and enforce Content-Security-Policy headers.

How to confirm the fix worked

Confirm the running commit is at or after df121586c1814ce624afea14c80b3144363d49b8, re-test the search tag endpoint with known XSS payloads to verify sanitization, and review application logs for prior suspicious search requests.

Typical attack path

  1. Locate an internet-facing Shaarli instance running an unpatched version
  2. Craft a URL that injects executable script via the search tag endpoint
  3. Deliver the link through phishing, social media, or another channel
  4. Victim loads the page and the reflected script executes with application privileges
  5. Script exfiltrates cookies, performs actions, or redirects the user

How to detect it

Review web server and application logs for requests to the search tag endpoint containing HTML or script tags; look for unusual referrers or user-agent patterns that indicate phishing delivery of malicious links.

  • search tag parameter containing <script
  • search tag parameter containing onerror=
  • search tag parameter containing javascript:

What your security team should do

  • Apply the fix commit df121586c1814ce624afea14c80b3144363d49b8 immediately on all instances
  • Scan public-facing deployments for the vulnerable search tag behavior
  • Add web application firewall rules to block common reflected XSS patterns in search parameters
  • Monitor for any new exploit publications given the existing public exploit maturity

The record

Reflected Cross Site Scripting (XSS) vulnerability in Shaarli v0.12.2, allows remote attackers to execute arbitrary code via search tag function.

Affected packages

Ecosystem Package Introduced Fixed
Debian:12 shaarli 0 No fix
Debian:13 shaarli 0 0.13.0+dfsg-1
Debian:14 shaarli 0 0.13.0+dfsg-1
Ubuntu:16.04:LTS shaarli 0 No fix
Ubuntu:Pro:16.04:LTS shaarli 0 No fix

Related vulnerabilities