Skip to content

[FALSE-POSITIVE] http/exposures/configs/config-json.yaml #13763

@k3mlol

Description

@k3mlol

Template IDs or paths

- http/exposures/configs/config-json.yaml

Environment

N/A

Steps To Reproduce

  1. nuclei -t http/exposures/configs/config-json.yaml

Relevant dumped responses

Anything else?

can add text/javascript to solve this

id: config-json

info:
  name: Configuration File - Detect
  author: geeknik
  severity: medium
  description: Multiple configuration files were detected.
  classification:
    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
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 4
    github-query: filename:config.json
  tags: config,exposure,files,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/config/default.json"
      - "{{BaseURL}}/config.json"
      - "{{BaseURL}}/config/config.json"
      - "{{BaseURL}}/credentials/config.json"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"api_keys":'
          - '"aws":'
          - '"server":'
          - '"users":'
          - '"password":'
          - '"user"'
          - '"path":'
        condition: or

      - type: word
        part: header
        words:
          - "text/html"
          - "text/javascript"
        negative: true

      - type: status
        status:
          - 200

Metadata

Metadata

Assignees

Labels

DoneReady to mergefalse-positiveNuclei template reporting invalid/unexpected result

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions