{"id":"GHSA-v6f4-jwv9-682w","aliases":["CVE-2023-6551"],"title":"class.upload.php allows cross-site scripting attacks via uploaded files","description":"As a simple library, class.upload.php does not perform an in-depth check on uploaded files, allowing a stored XSS vulnerability when the default configuration is used. \n\n\nDevelopers must be aware of that fact and use extension whitelisting accompanied by forcing the server to always provide content-type based on the file extension. \n\n\nThe README has been updated to include these guidelines.\n\n\n","severity":"medium","score":6.5,"published":"2024-01-04T18:30:21.000Z","modified":"2024-02-16T08:18:14.342Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"verot/class.upload.php","ranges":[{"events":[{"introduced":"0"},{"last_affected":"2.1.6"}],"type":"ECOSYSTEM"}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.2","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6"],"fixed":[]}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2023-6551","https://github.com/verot/class.upload.php/commit/befbccc2330b0ccb148fc87495896bd7b57f8c57","https://cert.pl/en/posts/2024/01/CVE-2023-6551","https://cert.pl/posts/2024/01/CVE-2023-6551","https://github.com/verot/class.upload.php"],"sources":[{"name":"OSV","id":"GHSA-v6f4-jwv9-682w","modified":"2024-02-16T08:18:14.342056Z","url":"https://osv.dev/vulnerability/GHSA-v6f4-jwv9-682w"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5}]}