2023-10-10 09:23:56 +00:00
|
|
|
id: mercurial-hgignore
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Mercurial Ignore - File Disclosure
|
|
|
|
author: DhiyaneshDK
|
|
|
|
severity: info
|
|
|
|
description: Mercurial Ignore file disclosure was detected.
|
|
|
|
reference:
|
|
|
|
- https://swcarpentry.github.io/hg-novice/08-ignore/
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
|
2023-10-14 11:27:55 +00:00
|
|
|
cvss-score: 0
|
2023-10-10 09:23:56 +00:00
|
|
|
cwe-id: CWE-200
|
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 1
|
2023-10-10 09:23:56 +00:00
|
|
|
shodan-query: html:"hgignore"
|
|
|
|
tags: exposure,hgignore,config,mercurial
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.hgignore"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'len(body) > 50'
|
|
|
|
- 'status_code == 200'
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "MongoDB over HTTP on the native"
|
|
|
|
- "application/javascript"
|
|
|
|
- "application/x-javascript"
|
|
|
|
- "application/json"
|
|
|
|
- "application/xml"
|
|
|
|
- "html"
|
|
|
|
- "<!doctype"
|
|
|
|
- "<script"
|
|
|
|
- "<meta"
|
|
|
|
- "image/"
|
|
|
|
part: response
|
|
|
|
negative: true
|
|
|
|
condition: or
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a00473045022100cb8a38a787a4bf8dfef1af3421219144dcda75b595a67fb07634716d26850372022068094e8496ce58a49baf3c5a4d94bbba402c9a249063e856ae95503aaa2bd8e0:922c64590222798bb761d5b6d8e72950
|