id: locust-exposure

info:
  name: Locust Exposure
  author: DhiyaneshDK,bhutch
  severity: medium
  description: Locust is exposed.
  classification:
    cpe: cpe:2.3:a:locust:locust:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: locust
    product: locust
    shodan-query: title:"Locust"
  tags: exposure,locust,misconfig

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '<title>Locust(?: for.+)?</title>'

      - type: word
        part: body
        words:
          - 'locust.js'
          - 'Charts</a>'
        condition: or

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