id: netbeans-config

info:
  name: Netbeans Config - Detect
  author: sbani
  severity: info
  description: Netbeans configuration information was detected.
  reference:
    - https://netbeans.apache.org/
  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
  metadata:
    max-request: 1
  tags: netbeans,config,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/nbproject/project.properties"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "(?mi)^src.dir="
          - "(?mi)^build.[a-zA-Z]+="
          - "(?mi)^jar.[a-zA-Z]+="
        condition: or

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100d279c238eaa6bb5de4708582ad72306fb812a7ab936bf0e1ad9c8b3458ebdefe02210082e2ab8e0e8f371d7722180577c7dff0bbd305a38e487c93341614d7bc6e482d:922c64590222798bb761d5b6d8e72950