id: CVE-2024-5230
info:
  name: FleetCart 4.1.1 - Information Disclosure
  author: s4e-io
  severity: medium
  description: |
    Issues with information disclosure in redirect responses. Accessing the majority of the website's pages exposes sensitive data, including the "Razorpay" "razorpayKeyId".
  impact: |
    Unauthenticated attackers can access sensitive configuration data including Razorpay payment gateway API keys through information disclosure in redirect responses.
  remediation: |
    Update FleetCart to a version later than 4.1.1 that addresses this information disclosure vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-5230
    - https://packetstormsecurity.com/files/178770/FleetCart-4.1.1-Information-Disclosure.html
    - https://codecanyon.net/item/fleetcart-laravel-ecommerce-system/23014826
    - https://vuldb.com/?ctiid.265981
    - https://vuldb.com/?id.265981
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2024-5230
    cwe-id: CWE-200
    epss-score: 0.40729
    epss-percentile: 0.97428
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"FleetCart"
  tags: cve,cve2024,packetstorm,cms,fleetcart,info-leak,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/en/products?query=123"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "razorpayKeyId:", "loggedIn:", "storeName:")'
          - "status_code == 200"
        condition: and

      - type: word
        words:
          - "razorpayKeyId: ''"
        negative: true
# digest: 490a004630440220050b513346d5c4fb218c0ab2f4d4aec4e5cedee6eb0cedafe3fc6bc41675b0a2022033ef08e2d84a540e1fe2d74f12bf17ca041a5d5800d26ab29a91a86b49035e79:922c64590222798bb761d5b6d8e72950