nuclei-templates/misconfiguration/gitea-public-signup.yaml

39 lines
875 B
YAML

id: gitea-public-signup
info:
name: Gitea Public Registration Enabled
author: edoardottt
severity: high
description: |
A misconfiguration in Gitea allows arbitrary users to sign up and read code hosted on the service.
reference:
- https://www.youtube.com/watch?v=oHhofSj9lEM&t=157s
- https://gitea.io/en-us/
metadata:
verified: true
shodan-query: html:"Powered by Gitea"
tags: misconfig,gitea
requests:
- method: GET
path:
- '{{BaseURL}}/user/sign_up'
matchers-condition: and
matchers:
- type: word
words:
- 'Powered by Gitea Version'
- 'Register -'
condition: and
- type: word
part: body
words:
- "Registration is disabled. Please contact your site administrator."
negative: true
- type: status
status:
- 200