Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-36563 PoC — CheckMK management web console 跨站脚本漏洞

Source
Associated Vulnerability
Title:CheckMK management web console 跨站脚本漏洞 (CVE-2021-36563)
Description:CheckMK management web console是一个应用软件。基于Asciidoctor和HTML上自动提供docs.checkmk.com。 CheckMK management web console存在跨站脚本漏洞,该漏洞允许攻击者可利用该漏洞使用HTML内容在设备上打开后门,并由浏览器解释(如JavaScript或其他客户端脚本),当用户访问应用程序的某些特定部分时,XSS有效负载将被触发。
Readme
# CVE-2021-36563 – Multiple Stored and Reflected XSS

**Application:** CheckMK Management Web Console

**Software Revision:** From 1.5.0 to 2.0.0p9

**Attack type:** Stored and Reflected XSS

**Solution:** Update to Software Revision 2.0.0p10 or later

**Summary:** The CheckMK management web console (versions 1.5.0 to 2.0.0) does not sanitise user input in various parameters of the WATO module. This allows an attacker to open a backdoor on the device with HTML content and interpreted by the browser (such as JavaScript or other client-side scripts), the XSS payload will be triggered when the user accesses some specific sections of the application. In the same sense a very dangerous potential way would be when an attacker who has the monitor role (not administrator) manages to get a stored XSS to steal the secretAutomation (for the use of the API in administrator mode) and thus be able to create another administrator user who has high privileges on the CheckMK monitoring web console. Another way is that persistent XSS allows an attacker to modify the displayed content or change the victim's information. Successful exploitation requires access to the web management interface, either with valid credentials or with a hijacked session.

**Technical Description:** See CVE-2021-36563

**Timeline:**
   * 2021-04-12 Issues discovered.
   * 2021-04-26 First contact with vendor via e-mail.
   * 2021-04-28 Second contact with vendor via e-mail.
   * 2021-04-29 Vendor response. XSS vulnerabilities were already detected, and would be patched in the next release.
   * 2021-05-07 Vendor publicly exposes the vulnerability and its patch.
   * 2021-05-12 New Software Version release(2.0.0p4) and Vulnerability patch confirmed.
   * 2021-07-26 Public disclosure.
   * 2021-07-28 New issues discovered and contact with the supplier by e-mail.
   * 2021-07-29 Vendor response. XSS vulnerabilities were already detected, and would be patched in the next release.
   * 2021-08-26 Vendor publicly exposes the vulnerability and its patch.
   * 2021-09-16 New Software Version release(2.0.0p11) and Vulnerability patch confirmed.

**Reference:**
   * https://checkmk.com/de/werk/12762
   * https://checkmk.com/de/werk/13148
   * https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-36563
   * https://nvd.nist.gov/vuln/detail/CVE-2021-36563

# DEMO
  **PoC checkmk version 1.5.0p19 Raw Edition**
  
[![PoC checkmk version 1.5.0p19 Raw Edition](https://j.gifs.com/w0VP7m.gif)](https://youtu.be/-8ZTxkmxlIg)

  **PoC checkmk version 2.0.0p1 Enterprise Edition**
  
[![PoC checkmk version 2.0.0p1 Enterprise Edition](https://j.gifs.com/k28zXY.gif)](https://youtu.be/S15b2lN5YQE)
File Snapshot

[4.0K] /data/pocs/061c6cd5bb98b35d8e7408af4f19729a03931a5c ├── [ 22K] exploit.txt ├── [2.6K] README.md └── [2.6M] Report.pdf 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.