Mercurial Ignore - File Disclosure
ID: mercurial-hgignore
Severity: info
Author: DhiyaneshDK
Tags: exposure,hgignore,config,mercurial
Description
Section titled “Description”Mercurial Ignore file disclosure was detected.
YAML Source
Section titled “YAML Source”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 cvss-score: 0 cwe-id: CWE-200 cpe: cpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 shodan-query: html:"hgignore" product: mercurial vendor: mercurial 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/" - "Response xmlns=" part: response negative: true condition: or# digest: 490a0046304402200a766650881a645a37e424a987cfa11e32600849bf2ee0addeb9d48a895dcdea02205865250b2cd62a9b8555e68f72ddbabaa5347731d3c17580089268c1c056c738:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/exposures/configs/mercurial-hgignore.yaml"