kingfisher/crates/kingfisher-rules/data/rules/uri.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2025-06-24 17:17:16 -07:00
rules:
- name: URI with Username and Secret
id: kingfisher.uri.1
pattern: |
(?xi)
2025-11-06 09:11:24 -08:00
(
(?:https?)://
[A-Za-z](?:[A-Za-z0-9+\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})*
:
(?:[A-Za-z0-9\-._~!$&'()*+,;=]|%[0-9A-Fa-f]{2})+
@
(?:[A-Za-z0-9\-._~%]+|\[[A-Fa-f0-9:.]+\]|\[v[A-Fa-f0-9][A-Za-z0-9\-._~%!$&'()*,;=:]+\])
(:?[0-9]+)?
(?:/[A-Za-z0-9\-._~%!$&'()*,;=:@%]*)*
/?
(?:\?[A-Za-z0-9\-._~%!$&'()*,;=:@/?%]*)?
(?:\#[A-Za-z0-9\-._~%!$&'()*,;=:@/?%]*)?
)
pattern_requirements:
ignore_if_contains:
2025-11-24 09:33:58 -08:00
- "****"
- "xxxx"
2025-11-21 12:33:10 -08:00
- "username:"
2025-11-23 20:00:19 -08:00
- "user:"
- ":password"
- ":pass"
- ">:<"
2025-06-24 17:17:16 -07:00
min_entropy: 4.0
2025-11-23 20:00:19 -08:00
confidence: medium
2025-06-24 17:17:16 -07:00
examples:
- https://username:secret@example.com/path
validation:
type: Http
content:
request:
method: GET
url: '{{ TOKEN }}'
response_matcher:
2025-11-23 20:00:19 -08:00
- report_response: false
2025-06-24 17:17:16 -07:00
type: StatusMatch
status:
- 200
2026-02-10 19:24:19 -08:00
references:
- https://www.rfc-editor.org/rfc/rfc3986#section-3.2.1