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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2019-19919 PoC — handlebars 注入漏洞

Source
Associated Vulnerability
Title:handlebars 注入漏洞 (CVE-2019-19919)
Description:handlebars是一款语义化的Web模板系统。 handlebars 4.3.0之前版本中存在注入漏洞。攻击者可借助特制的payloads利用该漏洞执行任意代码。
Description
Handlebars Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Vulnerability
Readme
# CVE-2019-19919
Handlebars Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Vulnerability

pip install requests packaging

python handlebars_scanner.py

---------------------------------------

pip install requests

python handlebars_exploit.py

Enter the target URL:

Exploit Expected Output : 
Enter the target URL (e.g., http://example.com/render): http://example.com/render

Enter the OS command to execute: ls

[+] Sending exploit payload to http://example.com/render...

[+] Payload executed successfully.

[+] Response:

file1.txt
file2.txt
File Snapshot

[4.0K] /data/pocs/d5dc6157d124eb23eea33b8635e134e35632e29a ├── [1.3K] handlebars_exploit.py ├── [2.5K] handlebars_scanner.py └── [ 599] README.md 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.