dnsmasq-config: Dnsmasq Config - File Disclosure

日期: 2025-08-01 | 影响软件: dnsmasq | POC: 已公开

漏洞描述

Dnsmasq Config file is exposed.

PoC代码[已公开]

id: dnsmasq-config

info:
  name: Dnsmasq Config - File Disclosure
  author: DhiyaneshDk
  severity: low
  description: |
    Dnsmasq Config file is exposed.
  reference:
    - https://github.com/imp/dnsmasq/blob/master/dnsmasq.conf.example
  metadata:
    verified: true
    max-request: 1
    fofa-query: body="dnsmasq.conf" && title="index"
  tags: exposure,dnsmasq,files,config,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/dnsmasq.conf'

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(content_type, "application/octet-stream","application/x-zip-compressed","text/plain")'
          - 'contains_all(body, "server=/","ipset=/")'
        condition: and

      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(content_type, "application/octet-stream","application/x-zip-compressed","text/plain")'
          - 'contains_all(body, "dhcp-range=","dhcp-authoritative")'
        condition: and
# digest: 490a004630440220787b956bbcfeaef7a52a8ae57326809920b5fb96ebd8b53b678638f193a7d6d4022007dcf5af01982b36e9598f3a641679ad2009f43e557f111ee850c74cb9e555e0:922c64590222798bb761d5b6d8e72950