Falhas do tipo CWE-434

3.244 resultados

Upload irrestrito de arquivo com tipo perigoso

A aplicação aceita upload de arquivos sem validar adequadamente o tipo ou extensão, permitindo que um atacante envie executáveis, scripts ou outros arquivos maliciosos que serão armazenados ou executados no servidor. O risco aumenta se o arquivo for salvo em diretório acessível pela web ou em local onde será processado automaticamente.

Exemplo

Um sistema de upload de 'fotos de perfil' verifica apenas o tamanho do arquivo, mas não valida a extensão. Um atacante envia um arquivo .php disfarçado de imagem; se salvo em /uploads/ acessível via web, ele consegue executar código PHP no servidor ao acessar a URL direta.

Como mitigar

Valide extensões contra uma lista branca (whitelist) de tipos permitidos, verifique a assinatura do arquivo (magic bytes) e não confie apenas no Content-Type do cliente. Armazene uploads fora do diretório web ou configure o servidor para não executar scripts no diretório de uploads.

CVE-2012-10049CRITICALWebPageTest Arbitrary PHP File Upload RCEEPSS 1.8%CVE-2012-10045CRITICALXODA 0.4.5 Arbitrary PHP File UploadEPSS 1.8%CVE-2021-24311—External Media < 1.0.34 - Authenticated Arbitrary File UploadEPSS 1.8%CVE-2024-9698HIGHCrafthemes Demo Import <= 3.3 - Authenticated (Admin+) Arbitrary File Upload in process_uploaded_filesEPSS 1.8%CVE-2022-41437HIGHBilling System Project v1.0 was discovered to contain a remote code execution (RCE) vulnerability via the component /php_action/createProducEPSS 1.8%CVE-2021-27459—A vulnerability has been found in multiple revisions of Emerson Rosemount X-STREAM Gas Analyzer. The webserver of the affected products alloEPSS 1.8%CVE-2025-7340CRITICALHT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. <= 2.2.1 - Unauthenticated Arbitrary File UploadEPSS 1.8%CVE-2023-6449MEDIUMContact Form 7 <= 5.8.3 - Authenticated (Editor+) Arbitrary File UploadEPSS 1.8%CVE-2024-13986HIGHNagios XI < 2024R1.3.2 Authenticated Arbitrary File Upload Path Traversal RCEEPSS 1.7%CVE-2020-14488HIGHOpenClinic GAEPSS 1.7%CVE-2021-29092HIGHUnrestricted upload of file with dangerous type vulnerability in file management component in Synology Photo Station before 6.8.14-3500 alloEPSS 1.7%CVE-2025-59118HIGHApache OFBiz: Critical Remote Command Execution via Unrestricted File UploadEPSS 1.7%CVE-2013-10055CRITICALHavalite CMS Arbitary File Upload RCEEPSS 1.7%CVE-2022-42038CRITICALThe d8s-ip-addresses package for Python, as distributed on PyPI, included a potential code-execution backdoor inserted by a third party. TheEPSS 1.7%CVE-2022-41382CRITICALThe d8s-json package for Python, as distributed on PyPI, included a potential code-execution backdoor inserted by a third party. The backdooEPSS 1.7%CVE-2013-10047CRITICALMiniWeb <= Build 300 Arbitrary File UploadEPSS 1.7%CVE-2013-10067CRITICALGlossword 1.8.8 - 1.8.12 Arbitrary File Upload RCEEPSS 1.7%CVE-2025-34097HIGHProcessMaker < 3.5.4 Authenticated Plugin Upload RCEEPSS 1.7%CVE-2021-4225—SP Project & Document Manager < 4.24 - Subscriber+ Shell UploadEPSS 1.7%CVE-2021-24216—All-in-One WP Migration < 7.41 - Admin+ Arbitrary File Upload to RCEEPSS 1.7%