SecurityContext

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

Classification

  • Cwe: CWE-538
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Not known: epss score, epss percentile, cpe

Metadata

  • Max-request: 5
  • Verified: yes

Labels

  • Name: Apache mod_negotiation - Information Disclosure
  • Impact: Attackers can enumerate files and directory structure, potentially disclosing sensitive information about the server.
  • Remediation: Disable MultiViews in mod_negotiation configuration or update to the latest Apache HTTP Server version.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: information_disclosure
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: requirements, from cve

```yaml

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

```