id: nacos-version

info:
  name: Nacos - Detect
  author: Arm!tage
  severity: info
  description: |
    Nacos was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"Nacos"
  tags: tech,detect,nacos

http:
  - method: GET
    path:
      - "{{BaseURL}}/v1/console/server/state?accessToken=&username="
      - "{{BaseURL}}/nacos/v1/console/server/state?accessToken=&username="

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '"version":"(\d+\.\d+\.\d+)"'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        regex:
          - '"version":"(\d+\.\d+\.\d+)"'

# digest: 4b0a00483046022100e0a76a6b65b4e90ee2626b4cadc38f38a3b883bd179fe7c802a361b4f6cb8ea1022100c67522161cb3f3e6f305c82c4bf19fda49efcfdf3d69d32458ee25b0ac8edd53:922c64590222798bb761d5b6d8e72950
