{"id":"CVE-2023-6551","state":"PUBLISHED","title":"Stored XSS in class.upload.php","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.","publishedAt":"2024-01-04T16:04:34.995Z","updatedAt":"2025-06-03T14:42:21.494Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"CISA-ADP"},"assigner":"CERT-PL","products":["class.upload.php class.upload.php"],"affected":[{"vendor":"class.upload.php","product":"class.upload.php","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"*","versionType":"semver"}],"repo":"https://github.com/verot/class.upload.php"}],"references":["https://cert.pl/posts/2024/01/CVE-2023-6551","https://cert.pl/en/posts/2024/01/CVE-2023-6551"],"weaknesses":["CWE-434"],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/6xxx/CVE-2023-6551.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-6551","state":"PUBLISHED","datePublished":"2024-01-04T16:04:34.995Z","dateUpdated":"2025-06-03T14:42:21.494Z","assignerShortName":"CERT-PL","assignerOrgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateReserved":"2023-12-06T11:18:59.869Z"},"containers":{"cna":{"title":"Stored XSS in class.upload.php","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"class.upload.php","product":"class.upload.php","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"*","versionType":"semver"}],"repo":"https://github.com/verot/class.upload.php"}],"references":[{"url":"https://cert.pl/posts/2024/01/CVE-2023-6551","tags":["third-party-advisory"]},{"url":"https://cert.pl/en/posts/2024/01/CVE-2023-6551","tags":["third-party-advisory"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-434","description":"CWE-434 Unrestricted Upload of File with Dangerous Type","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CERT-PL","orgId":"4bb8329e-dd38-46c1-aafb-9bf32bcb93c6","dateUpdated":"2024-10-10T15:36:10.697Z"},"credits":[{"lang":"en","type":"finder","user":"00000000-0000-4000-9000-000000000000","value":"Krzysztof Zając (CERT.PL)"}],"impacts":[{"capecId":"CAPEC-592","descriptions":[{"lang":"en","value":"CAPEC-592 Stored XSS"}]},{"capecId":"CAPEC-209","descriptions":[{"lang":"en","value":"CAPEC-209 XSS Using MIME Type Mismatch"}]}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://cert.pl/posts/2024/01/CVE-2023-6551","tags":["third-party-advisory","x_transferred"]},{"url":"https://cert.pl/en/posts/2024/01/CVE-2023-6551","tags":["third-party-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T08:35:14.672Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"CHANGED","version":"3.1","baseScore":5.4,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","integrityImpact":"LOW","userInteraction":"REQUIRED","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"LOW","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-05-08T20:16:15.657075Z","id":"CVE-2023-6551","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-434","type":"CWE","lang":"en","description":"CWE-434 Unrestricted Upload of File with Dangerous Type"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-03T14:42:21.494Z"}}]}}}