Merge pull request #3124 from geeknik/patch-42

checks for github and gitlab recovery codes and discord backup codes
patch-1
Prince Chaddha 2022-09-15 18:51:43 +05:30 committed by GitHub
commit 4d72ce52cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,25 @@
id: discord-backup-code
info:
name: Discord Backup Code Detection
author: geeknik
severity: high
tags: exposure,token,discord
requests:
- method: GET
path:
- '{{BaseURL}}/discord-backup-codes.txt'
- '{{BaseURL}}/discord_backup_codes.txt'
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '[0-9A-Za-z]{4}\-[0-9A-Za-z]{4}'
- type: status
status:
- 200

View File

@ -0,0 +1,27 @@
id: github-recovery-code
info:
name: Github Recovery Code Detection
author: geeknik
severity: high
metadata:
verified: true
tags: exposure,token,github
requests:
- method: GET
path:
- '{{BaseURL}}/github-recovery-codes.txt'
- '{{BaseURL}}/github_recovery_codes.txt'
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '[0-9A-Za-z]{5}\-[0-9A-Za-z]{5}'
- type: status
status:
- 200

View File

@ -0,0 +1,25 @@
id: gitlab-recovery-code
info:
name: Gitlab Recovery Code Detection
author: geeknik
severity: high
tags: exposure,token,gitlab
requests:
- method: GET
path:
- '{{BaseURL}}/gitlab-recovery-codes.txt'
- '{{BaseURL}}/gitlab_recovery_codes.txt'
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '[0-9A-Za-z]{16}'
- type: status
status:
- 200