| शीर्षक | code-projects Human Resource Integrated System published August 1, 2025 Cross Site Scripting |
|---|
| विवरण | Summary
The vulnerability exists in the insert-and-view component due to improper input validation and output encoding.
Root Cause
The application fails to properly sanitize and encode user-controlled input before rendering it to the client-side in action.php. Specifically, user input from $_POST['content'] is directly output via PHP's echo statement without encoding.
Example vulnerable code snippet:
echo $row['msg'];
Reproduction
Navigate to the comment submission form.
Submit the following malicious payload:
<script>alert('XSS')</script>
The payload will be executed in the browser, demonstrating a successful XSS attack.
Impact
This vulnerability allows remote attackers to execute arbitrary JavaScript in the context of the affected website, potentially leading to session hijacking, defacement, or further client-side exploitation. |
|---|
| स्रोत | ⚠️ https://github.com/shenxianyuguitian/hris-vuln-XSS/blob/main/README.md |
|---|
| उपयोगकर्ता | xuanyuesanshi (UID 88126) |
|---|
| सबमिशन | 01/08/2025 08:15 AM (1 वर्ष पहले) |
|---|
| संयम | 02/08/2025 08:54 AM (1 day later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 318600 [code-projects Human Resource Integrated System 1.0 action.php content क्रॉस साइट स्क्रिप्टिंग] |
|---|
| अंक | 20 |
|---|