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.433
    epss-percentile: 0.97557
    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: 490a0046304402203ae3ec2870ed747d253e66d076679ef04a32fbea07d131b052e1c094941864da0220555f02dd3e86fea43342627fd9195ba5513b3ecd3683cd286af93d25118e0803:922c64590222798bb761d5b6d8e72950