id: CVE-2021-45092

info:
  name: Thinfinity Iframe Injection
  author: danielmofer
  severity: critical
  description: A vulnerability exists in Thinfinity VirtualUI in a function located in /lab.html reachable which by default  could allow IFRAME injection via the "vpath" parameter.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential remote code execution.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the vulnerability.
  reference:
    - https://github.com/cybelesoft/virtualui/issues/2
    - https://nvd.nist.gov/vuln/detail/CVE-2021-44848
    - https://www.tenable.com/cve/CVE-2021-45092
    - http://packetstormsecurity.com/files/166068/Thinfinity-VirtualUI-2.5.41.0-IFRAME-Injection.html
    - https://github.com/danielmofer/nuclei_templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2021-45092
    cwe-id: CWE-74
    epss-score: 0.81835
    epss-percentile: 0.99216
    cpe: cpe:2.3:a:cybelesoft:thinfinity_virtualui:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: cybelesoft
    product: thinfinity_virtualui
    shodan-query: http.title:"thinfinity virtualui"
    fofa-query: title="thinfinity virtualui"
    google-query: intitle:"thinfinity virtualui"
  tags: cve2021,cve,packetstorm,iframe,thinfinity,tenable,injection,cybelesoft,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/lab.html?vpath=//interact.sh"

    matchers:
      - type: regex
        regex:
          - ".*vpath.*"
          - "thinfinity"
        condition: and
# digest: 490a00463044022021abe154f3909802ce96cfd2a26b672c7760f54f9df53050d4198f477e7986bc02206231b1915bf85786179d65b44fcf2ea011d93881a28e9683983bf4fb82aabf78:922c64590222798bb761d5b6d8e72950