id: gitlab-public-signup

info:
  name: GitLab public signup
  author: pdteam,axrk
  severity: info
  classification:
    cpe: cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: gitlab
    product: gitlab
    shodan-query: http.title:"GitLab"
  tags: gitlab,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/users/sign_in"
      - "{{BaseURL}}/users/sign_up"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<a data-qa-selector="register_link" href="/users/sign_up">Register now</a>'
          - 'data-qa-selector="new_user_register_button"'

      - type: word
        words:
          - 'https://about.gitlab.com'

      - type: status
        status:
          - 200

      - type: word
        negative: true
        words:
          - '<meta content="GitLab.com" property="og:description">'
# digest: 4a0a004730450220103e2ed3c063eba2a6644ebce8aa645698138381f1c488462ed1453819949d0e022100ff95275effa6aae1707c8fbd331f0aa05e49423374f01520bb1a289914722e5e:922c64590222798bb761d5b6d8e72950