Sploit.io - Search

Product: k-box, version: < 0.33.1

CVE-2022-23637

Severity: MEDIUM

Description: K-Box is a web-based application to manage documents, images, videos and geodata. Prior to version 0.33.1, a stored Cross-Site-Scripting (XSS) vulnerability is present in the markdown editor used by the document abstract and markdown file preview. A specifically crafted anchor link can, if clicked, execute untrusted javascript actions, like retrieving user cookies. Version 0.33.1 includes a patch that allows discarding unsafe links.

CVSS Score: 6.1

Priority

B

CISA Data

EPSS Data

  • EPSS: 0.002060000
  • Percentile: 0.428330000
  • Date: 2026-06-07

ExploitDB

No data available.

HackerOne Data

  • Rank: 9663
  • Reports submitted count: 0
  • Unknown: 0
  • None: 0
  • Low: 0
  • Medium: 0
  • High: 0
  • Critical: 0

GitHub PoCs

    Nuclei Templates

    No data available.

    VulnCheck Data

    Affected Products:

    • k-box k-box - Versions: < 0.33.1

    References:

    Risk Assessment

    1. Risk Assessment
    The vulnerability is a stored Cross-Site Scripting (XSS) flaw within the K-Box web application, specifically in the markdown editor used for document abstracts and previews. This allows an attacker to inject malicious JavaScript code that executes within the context of another user's browser. The CVSS score is 6.1 (Medium), indicating a moderate risk. The vulnerability requires user interaction – the attacker needs a victim to click a crafted anchor link. Business impact centers around potential compromise of user cookies, which could lead to session hijacking and potentially access to sensitive data stored within K-Box. Confidentiality and integrity are at low risk, as the attacker can potentially read and modify limited data, but availability is not directly impacted. The likelihood of exploitation is moderate, as it requires a user to click a malicious link, but the ease of exploitation is low once the link is clicked. The scope is changed because the vulnerability allows the attacker to run Javascript in the user's context, potentially affecting the entire K-Box application.

    2. Potential Attack Scenarios
    An attacker could craft a malicious document abstract containing a specifically crafted anchor link. This link, when clicked by a user viewing the abstract, will execute the injected JavaScript code. For example, the attacker could embed a link that steals the user’s K-Box session cookie and sends it to a server controlled by the attacker. The attack vector is through a web-based document abstract. The attack process involves the attacker creating a document with the malicious link, uploading it to K-Box, and then enticing a user to view the document. The potential outcome is session hijacking, allowing the attacker to impersonate the user within the K-Box application and access their data or perform actions on their behalf. A more subtle attack could involve redirecting the user to a phishing page disguised as K-Box, stealing credentials.

    3. Mitigation Recommendations
    The primary mitigation is to upgrade K-Box to version 0.33.1 or later. This version includes a patch that allows discarding unsafe links within the markdown editor. Immediate action should be taken to patch all instances of K-Box currently in use. Users should be advised to be cautious when clicking links within document abstracts, especially if the source is untrusted. For organizations with a robust web application firewall (WAF), configure it to inspect and sanitize markdown content for potentially malicious JavaScript. Further references can be found at: https://github.com/k-box/k-box/security/advisories/GHSA-wwcw-h4mf-mvxf and https://github.com/k-box/k-box/commit/3bb4df9a4d01aade5bffaa603a514d1a5fabd214.

    4. Executive Summary
    K-Box, a web application for managing documents, images, videos, and geodata, has a medium-severity Cross-Site Scripting (XSS) vulnerability. This vulnerability allows an attacker to inject malicious JavaScript code into document abstracts, potentially stealing user cookies and hijacking sessions. While users need to click a malicious link for the attack to succeed, the potential impact includes unauthorized access to sensitive data and actions performed on behalf of the compromised user. We recommend upgrading K-Box to version 0.33.1 as soon as possible to mitigate this risk. Addressing this vulnerability is important to maintain the confidentiality and integrity of data stored within K-Box and to ensure a secure user experience. Prompt patching will minimize the risk of session hijacking and potential data breaches.