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.18768
    epss-percentile: 0.96989
  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: 4a0a00473045022063519e0a29ac699ed97a5a7b6e04cfe727bd84a6377199e5bb143649de0fe3db022100c4e10424300e55316575a4710d480f86d4202cb30ac07bf2678c2de6afb42e03:922c64590222798bb761d5b6d8e72950