提交 #897268: code-projects Task Management System in PHP 1.0 Cross Site Scripting信息

标题code-projects Task Management System in PHP 1.0 Cross Site Scripting
描述The Task Management System in PHP is potentially vulnerable to Stored Cross-Site Scripting through attacker-controlled filenames supplied to the user profile upload functionality. The affected endpoint processes multipart/form-data requests containing a profile file field. The filename component of a multipart upload is fully controlled by the client and therefore must be considered untrusted input. The supplied proof-of-concept request specifies the following filename: file.txtp5vvr"><img src=a onerror=alert(1)>pshx9 This value contains injected HTML markup with an event-handler attribute: <img src=a onerror=alert(1)> If the application saves the original filename in the database or filesystem metadata and later displays that filename within an HTML response without proper encoding, the injected markup may break out of the intended HTML context. The browser then parses the injected <img> element as active HTML. Because the specified image source cannot be loaded, the element's onerror event handler is triggered and the supplied JavaScript executes in the security context of the Task Management System. An attacker could exploit the issue by authenticating with a valid account, uploading a profile file containing a malicious filename, and causing another user to access a page that displays the stored filename. Potentially affected locations may include: User profile pages Administrative user-management interfaces Profile image management pages Upload history pages Account listings Task or project member interfaces The exact execution location should be identified in the final vulnerability report based on where the payload was observed to execute. Because the malicious value originates in the filename rather than the contents of the uploaded file, restricting only the uploaded file's MIME type does not prevent this vulnerability. Filenames must independently be treated as attacker-controlled data and safely encoded whenever displayed. If the filename is stored persistently and executes during subsequent page views, this issue should be classified as Stored Cross-Site Scripting under CWE-79.
来源⚠️ https://github.com/ahmadmarz10-hub/CVEsMarz/blob/main/Stored%20Cross-Site%20Scripting%20(XSS)%20via%20Profile%20Image%20Filename%20in%20Task%20Management%20System.md
用户
 AhmadMarzouk (UID 95993)
提交2026-07-20 12時05分 (2 月前)
管理2026-09-05 21時03分 (2 months later)
状态重复
VulDB条目399313 [code-projects Task Management System 1.0 User Profile Update UpdateUserProfile.php lname 跨网站脚本]
积分0

Do you want to use VulDB in your project?

Use the official API to access entries easily!