id: httpbin-open-redirect

info:
  name: HTTPBin - Open Redirect
  author: Adam Crosser
  severity: medium
  description: HTTPBin contains an open redirect vulnerability. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  reference:
    - https://github.com/postmanlabs/httpbin
  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
    cwe-id: CWE-601
  metadata:
    max-request: 1
    shodan-query:
      - html:"https://github.com/requests/httpbin"
      - title:"httpbin.org"
  tags: redirect,httpbin,oss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/redirect-to?url=https%3A%2F%2Finteract.sh"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'location == "https://interact.sh"'

      - type: status
        status:
          - 302
# digest: 4b0a004830460221009f12b862e6e615be303736e33591f556e8e5634a6a0d80a669ed1b135bfa9dca022100a5f34442445f51685ecdcdcb4f164318de04c8716b3d62e032622ab8f6c11e65:922c64590222798bb761d5b6d8e72950