{"id":"GHSA-v6f4-jwv9-682w","summary":"class.upload.php allows cross-site scripting attacks via uploaded files","details":"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","aliases":["CVE-2023-6551"],"modified":"2024-02-16T08:18:14.342056Z","published":"2024-01-04T18:30:21Z","database_specific":{"cwe_ids":["CWE-20","CWE-434"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2024-01-04T20:10:32Z","nvd_published_at":"2024-01-04T16:15:09Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-6551"},{"type":"WEB","url":"https://github.com/verot/class.upload.php/commit/befbccc2330b0ccb148fc87495896bd7b57f8c57"},{"type":"WEB","url":"https://cert.pl/en/posts/2024/01/CVE-2023-6551"},{"type":"WEB","url":"https://cert.pl/posts/2024/01/CVE-2023-6551"},{"type":"PACKAGE","url":"https://github.com/verot/class.upload.php"}],"affected":[{"package":{"name":"verot/class.upload.php","ecosystem":"Packagist","purl":"pkg:composer/verot/class.upload.php"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.1.6"}]}],"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"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-v6f4-jwv9-682w/GHSA-v6f4-jwv9-682w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}