nuclei-templates/exposures/tokens/generic/general-tokens.yaml

44 lines
2.0 KiB
YAML
Raw Normal View History

2021-01-10 23:20:14 +00:00
id: generic-tokens
2020-05-24 03:57:26 +00:00
info:
2021-01-10 23:20:14 +00:00
name: Generic Tokens
2021-06-09 12:20:56 +00:00
author: nadino,geeknik
2021-01-10 23:20:14 +00:00
severity: info
tags: exposure,token
2021-03-11 16:17:26 +00:00
2020-05-24 03:57:26 +00:00
requests:
- method: GET
path:
- '{{BaseURL}}'
2021-04-08 15:45:49 +00:00
2020-07-11 05:50:35 +00:00
matchers-condition: and
2020-05-24 03:57:26 +00:00
matchers:
- type: dsl
dsl:
- regex("TOKEN[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
- regex("API[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
- regex("KEY[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
- regex("SECRET[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
- regex("AUTHORIZATION[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
- regex("PASSWORD[\\-|_|A-Z0-9]*(\'|\")?(:|=)(\'|\")?[\\-|_|A-Z0-9]{10}",replace(toupper(body),"",""))
2021-04-08 15:45:49 +00:00
- type: regex
part: body
regex:
2021-06-23 19:08:16 +00:00
- '(K|k)ey([U|u]p|[D|d]own|[P|p]ress)'
- '(K|k)eyboard(N|n)avigation'
- '[P|p]assword([E|e]mail[N|n]ot[F|f]ound[M|m]essage|[L|l]abel|[E|e]rror[M|m]essage|[M|m]essage)'
condition: or
2021-04-08 15:45:49 +00:00
negative: true
2020-05-24 03:57:26 +00:00
extractors:
- type: regex
part: body
regex:
- (T|t)(O|o)(K|k)(E|e)(N|n)[\-|_|A-Za-z0-9]*(\''|")?( )*(:|=)+()*(\''|")?[ 0-9A-Za-z\-_]+(\''|")?
- (A|a)(P|p)(Ii)[\-|_|A-Za-z0-9]*(\''|")?( )*(:|=)( )*(\''|")?[0-9A-Za-z\-_]+(\''|")?
- (K|k)(E|e)(Y|y)[\-|_|A-Za-z0-9]*(\''|")?( )*(:|=)( )*(\''|")?[0-9A-Za-z\-_]+(\''|")?
- (S|s)(E|e)(C|c)(R|r)(E|e)(T|t)[\-|_|A-Za-z0-9]*(\''|")?( )*(:|=)()*(\''|")?[ 0-9A-Za-z\-_]+(\''|")?
- (A|a)(U|u)(T|t)(H|h)(O|o)(R|r)(I|i)(Z|z)(A|a)(T|t)(I|i)(O|o)(N|n)[\-|_|A-Za-z0-9]*(\''|")?()*(:|=)( )*(\''|")?[ 0-9A-Za-z\-_]+(\''|")?
- (P|p)(A|a)(S|s)(S|s)(W|w)(O|o)(R|r)(D|d)[\-|_|A-Za-z0-9]*(\''|")?()*(:|=)( )*(\''|")?[ 0-9A-Za-z\-_]+(\''|")?