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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-42664 PoC — Engineers Online Portal 跨站脚本漏洞

Source
Associated Vulnerability
Title:Engineers Online Portal 跨站脚本漏洞 (CVE-2021-42664)
Description:A Stored Cross Site Scripting (XSS) Vulneraibiilty exists in Sourcecodester Engineers Online Portal in PHP via the (1) Quiz title and (2) quiz description parameters to add_quiz.php. An attacker can leverage this vulnerability in order to run javascript commands on the web server surfers behalf, which can lead to cookie stealing and more.
Description
 CVE-2021-42664 - Stored Cross-Site Scripting vulnerability in the Engineers online portal system.
Readme
# CVE-2021-42664
CVE-2021-42664 - Stored Cross-Site Scripting vulnerability in the Engineers online portal system. 

# Technical description:
A stored XSS vulnerability exists in the Engineers online portal system. An attacker can leverage this vulnerability in order to run javascript on the web server surfers behalf, which can lead to cookie stealing, defacement and more. 

Affected components -  

Vulnerable page - add_quiz.php

Vulnerable parameters - "quiz_title", "description"

# Steps to exploit:
1) Navigate to http://localhost/nia_munoz_monitoring_system/add_quiz.php
2) Insert your payload in the "quiz_title" parameter or the "description" parameter
3) Click save

# Proof of concept (Poc) -
The following payload will allow you to run the javascript code - 
```
<script>alert("This is an XSS")</script>
```

![CVE-2021-42664](https://user-images.githubusercontent.com/93016131/140181371-4ebb424b-a550-40c7-843a-9cbeacd9bb34.gif)

# References -
https://www.exploit-db.com/exploits/50451

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42664

https://nvd.nist.gov/vuln/detail/CVE-2021-42664

# Discovered by - 
Alon Leviev(0xDeku), 22 October, 2021. 
File Snapshot

[4.0K] /data/pocs/d1e04fe5950f6cbc4faaf6bc2c352f1c23eda529 └── [1.1K] 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 →