id: rubocop-config

info:
  name: Rubocop Configuration - Detect
  author: DhiyaneshDk
  severity: info
  description: Rubocop configuration information was detected.
  reference:
    - https://raw.githubusercontent.com/maurosoria/dirsearch/master/db/dicc.txt
    - https://github.com/rubocop/rubocop
  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
    cpe: cpe:2.3:a:rubocop_project:rubocop:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"rubocop.yml"
    product: rubocop
    vendor: rubocop_project
  tags: exposure,files,config,ruby

http:
  - method: GET
    path:
      - '{{BaseURL}}/.rubocop.yml'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "AllCops:"
          - "Include:"
          - "Exclude:"
        condition: and

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