apache-mod-negotiation-listing: Apache mod_negotiation - Pseudo Directory Listing

2026-01-08 apache-mod-negotiation PoC Public

Description

Detected Apache server with mod_negotiation and MultiViews enabled, exposing a pseudo directory listing when invalid Accept headers are sent to extensionless filenames.

PoC

id: apache-mod-negotiation-listing

info:
  name: Apache mod_negotiation - Pseudo Directory Listing
  author: 0x_Akoko
  severity: low
  description: |
    Detected Apache server with mod_negotiation and MultiViews enabled, exposing a pseudo directory listing when invalid Accept headers are sent to extensionless filenames.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/apache-mod_negotiation-filename-bruteforcing/
    - https://cwe.mitre.org/data/definitions/538.html
  classification:
    cwe-id: CWE-538
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
  metadata:
    verified: true
    max-request: 5
  tags: apache,misconfig,exposure,mod-negotiation,vuln

http:
  - raw:
      - |
        GET {{path}} HTTP/1.1
        Host: {{Hostname}}
        Accept: fake/fake

    payloads:
      path:
        - /index
        - /test
        - /admin
        - /login
        - /config

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Available variants"
          - "href="
        condition: and

      - type: status
        status:
          - 406

      - type: word
        part: header
        words:
          - "text/html"

    extractors:
      - type: regex
        name: exposed_files
        part: body
        regex:
          - '<a href="([^"]+)">'
        group: 1
# digest: 4a0a00473045022100cc3ca39c3e7ecee6029c5667237d11ab706ae5fa18407a30133df8fcd904702a022061b928bb8e086fc220c2423104b21433a0c8dfb78baf0b89cfb00fe66f0952cf:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities