id: CVE-2023-5375

info:
  name: Mosparo < 1.0.2 - Open Redirect
  author: shankaracharya
  severity: medium
  description: |
    Open Redirect in GitHub repository mosparo/mosparo prior to 1.0.2.
  impact: |
    Unauthenticated attackers can exploit open redirect through the targetPath parameter to redirect users to malicious websites for phishing attacks.
  remediation: Update to the latest version of mosparo.
  reference:
    - https://huntr.dev/bounties/3fa2abde-cb58-45a3-a115-1727ece9acb9
    - https://nvd.nist.gov/vuln/detail/CVE-2023-5375
    - https://github.com/mosparo/mosparo/commit/9d5da367b78b8c883bfef5f332ffea26292f99e8
    - https://github.com/fkie-cad/nvd-json-data-feeds
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2023-5375
    cwe-id: CWE-601
    epss-score: 0.33629
    epss-percentile: 0.98166
    cpe: cpe:2.3:a:mosparo:mosparo:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: mosparo
    product: mosparo
  tags: cve2023,cve,huntr,mosparo,redirect,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/project/switch/1?targetPath=http://oast.pro"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)oast\.pro.*$'
# digest: 4a0a00473045022100d0101abc8ce07fc3b588407675a9a431ba4054f76fbbec95c917e4b4c8386a5b022077786615ece84125fa10c6ce5cdaba9bae91a655314193b9c140d79342170226:922c64590222798bb761d5b6d8e72950