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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

Source
Associated Vulnerability
Title:Apperta Foundation OpenEyes 跨站脚本漏洞 (CVE-2021-40374)
Description:Apperta Foundation OpenEyes是Apperta Foundation基金会的一个开源电子病历(ERP)。 Apperta Foundation OpenEyes 3.5.1 中存在安全漏洞,该漏洞允许远程攻击者通过 Address1 参数注入任意 Web 脚本或 HTML。
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. 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.