Falhas do tipo CWE-434

3.246 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-2022-44051CRITICALThe d8s-stats for python, as distributed on PyPI, included a potential code-execution backdoor inserted by a third party. A potential code eEPSS 1.4%CVE-2024-34110HIGHRCE in the Adobe Commerce Webhook module through a legit webhook definitionEPSS 1.4%CVE-2024-6132HIGHPexels: Free Stock Photos <= 1.2.2 - Authenticated (Contributor+) Arbitrary File UploadEPSS 1.4%CVE-2023-3375HIGHUnrestricted File Upload in BookreenEPSS 1.4%CVE-2022-43085HIGHAn arbitrary file upload vulnerability in add_product.php of Restaurant POS System v1.0 allows attackers to execute arbitrary code via a craEPSS 1.4%CVE-2020-36863HIGHNagios XI < 5.7.2 Unrestricted File Upload via Audio Import DirectoryEPSS 1.4%CVE-2022-48079CRITICALMonnai aaPanel host system v1.5 contains an access control issue which allows attackers to escalate privileges and execute arbitrary code viEPSS 1.4%CVE-2021-26634CRITICALMaxboard multiple vulnerabilitiesEPSS 1.4%CVE-2024-3962CRITICALProduct Addons & Fields for WooCommerce <= 32.0.18 - Unauthenticated Arbitrary File Upload via ppom_upload_fileEPSS 1.4%CVE-2023-1728CRITICALUnrestricted Upload of File with Dangerous Type in Fernus LMSEPSS 1.4%CVE-2022-44054CRITICALThe d8s-xml for python, as distributed on PyPI, included a potential code-execution backdoor inserted by a third party. A potential code exeEPSS 1.4%CVE-2023-49715MEDIUMA unrestricted php file upload vulnerability exists in the import.json.php temporary copy functionality of WWBN AVideo dev master commit 15fEPSS 1.4%CVE-2023-6558HIGHExport and Import Users and Customers <= 2.4.8 - Authenticated (Shop Manager+) Arbitrary File UploadEPSS 1.4%CVE-2024-0864CRITICALRCE in LaragonEPSS 1.4%CVE-2023-6576MEDIUMByzoro S210 HTTP POST Request uploadfile.php unrestricted uploadEPSS 1.4%CVE-2023-27178CRITICALAn arbitrary file upload vulnerability in the upload function of GDidees CMS 3.9.1 allows attackers to execute arbitrary code via a crafted EPSS 1.4%CVE-2022-43231HIGHCanteen Management System v1.0 was discovered to contain an arbitrary file upload vulnerability via /youthappam/manage_website.php. This vulEPSS 1.4%CVE-2023-28353HIGHAn issue was discovered in Faronics Insight 10.0.19045 on Windows. An unauthenticated attacker is able to upload any type of file to any locEPSS 1.4%CVE-2021-33352CRITICALAn issue in Wyomind Help Desk Magento 2 extension v.1.3.6 and before fixed in v.1.3.7 allows attacker to execute arbitrary code via a phar fEPSS 1.4%CVE-2022-44050CRITICALThe d8s-networking for python, as distributed on PyPI, included a potential code-execution backdoor inserted by a third party. A potential cEPSS 1.4%