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

Goal: 1000 CNY · Raised: 1020 CNY

100%

CVE-2021-40374 PoC — Apperta Foundation OpenEyes 跨站脚本漏洞

Source
Associated Vulnerability
Title:Apperta Foundation OpenEyes 跨站脚本漏洞 (CVE-2021-40374)
Description:A stored cross-site scripting (XSS) vulnerability was identified in Apperta Foundation OpenEyes 3.5.1. Updating a patient's details allows remote attackers to inject arbitrary web script or HTML via the Address1 parameter. This JavaScript then executes when the patient profile is loaded, which could be used in a XSS attack.
Description
Stored Cross-site Scripting in OpenEyes 3.5.1
Readme
# CVE-2021-40374 - Stored Cross-site Scripting in OpenEyes 3.5.1

## Description

A stored cross-site scripting (XSS) vulnerability was identified in OpenEyes 3.5.1, developed by the Apperta Foundation.

Improper input handling in the 'Address1' parameter allowed for JavaScript to be injected into a patients profile. When the patient profile was loaded by the web browser, the JavaScript executed. This could be used to perform XSS attacks on unsuspecting users who view the patient profile.

## Reproduction

1. Browse to a patient profile.
2. Click the 'edit icon' near the top of the screen.
3. In the Address1 field, input the following JavaScript: `<IMG SRC=# onerror="alert('xxs')">`
4. Click 'Save patient'.
5. Reload the patient profile.
6. Note that an alert box is triggered by the browser with the message 'xss'.

## Impact

If an attacker were to embed malicious JavaScript into the OpenEyes application, it could be used to hijack user accounts, steal credentials, exfiltrate sensitive data or perform malicious actions on the OpenEyes application.  

## Demonstration

https://user-images.githubusercontent.com/20635370/131623517-818ac6f8-61bf-4221-8dd8-11fc7171acef.mp4
File Snapshot

[4.0K] /data/pocs/015e5397f8b06bae9fcb50f26f6e1cfc55f1098b └── [1.2K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
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 →