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,vuln

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: 4a0a0047304502203e571b6a2f9256998c85346ca255c42f07a05f7a763172cba927d367c7cf6fc5022100efbaadf47db1bad52b61ca147b36b58f195f2e9724341fd1002f9d66e40a2910:922c64590222798bb761d5b6d8e72950