← voltar
CVE-2020-1938

CVE-2020-1938

CVSS 9.8 CRITICALEPSS 99.3%● KEV
Em resumo

O conector AJP do Apache Tomcat estava ativado por padrão e confiava demais nas conexões, permitindo que atacantes lessem qualquer arquivo da aplicação web ou executassem código ao processar arquivos como scripts JSP.

Detalhe técnico

O Conector AJP em Tomcat 9.0.0.M1-9.0.0.30, 8.5.0-8.5.50 e 7.0.0-7.0.99 estava habilitado por padrão em todas as interfaces com validação insuficiente. Um atacante com acesso à porta AJP pode explorar a vulnerabilidade para recuperar arquivos arbitrários ou executar código JSP arbitrário, resultando em execução remota de código se combinado com capacidades de upload de arquivo.

Resumo gerado e traduzido por IA a partir da descrição oficial.
When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Tomcat treats AJP connections as having higher trust than, for example, a similar HTTP connection. If such connections are available to an attacker, they can be exploited in ways that may be surprising. In Apache Tomcat 9.0.0.M1 to 9.0.0.30, 8.5.0 to 8.5.50 and 7.0.0 to 7.0.99, Tomcat shipped with an AJP Connector enabled by default that listened on all configured IP addresses. It was expected (and recommended in the security guide) that this Connector would be disabled if not required. This vulnerability report identified a mechanism that allowed: - returning arbitrary files from anywhere in the web application - processing any file in the web application as a JSP Further, if the web application allowed file upload and stored those files within the web application (or the attacker was able to control the content of the web application by some other means) then this, along with the ability to process a file as a JSP, made remote code execution possible. It is important to note that mitigation is only required if an AJP port is accessible to untrusted users. Users wishing to take a defence-in-depth approach and block the vector that permits returning arbitrary files and execution as JSP may upgrade to Apache Tomcat 9.0.31, 8.5.51 or 7.0.100 or later. A number of changes were made to the default AJP Connector configuration in 9.0.31 to harden the default configuration. It is likely that users upgrading to 9.0.31, 8.5.51 or 7.0.100 or later will need to make small changes to their configurations.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Produtos afetados
Apache · Apache Tomcat
PoCs públicas encontradas40
githubgithub.com/00theway/Ghostcat-CNVD-2020-10487417githubgithub.com/bkfish/CNVD-2020-10487-Tomcat-Ajp-lfi-Scanner292githubgithub.com/lizhianyuguangming/TomcatScanPro291githubgithub.com/tpt11fb/AttackTomcat254githubgithub.com/sv3nbeast/CVE-2020-1938-Tomact-file_include-file_read52githubgithub.com/xindongzhuaizhuai/CVE-2020-193845githubgithub.com/laolisafe/CVE-2020-193838githubgithub.com/Hancheng-Lei/Hacking-Vulnerability-CVE-2020-1938-Ghostcat17githubgithub.com/woaiqiukui/CVE-2020-1938TomcatAjpScanner14githubgithub.com/fairyming/CVE-2020-193811githubgithub.com/dacade/CVE-2020-19389githubgithub.com/doggycheng/CNVD-2020-104878githubgithub.com/fatal0/tomcat-cve-2020-1938-check7githubgithub.com/w4fz5uck5/CVE-2020-1938-Clean-Version6githubgithub.com/delsadan/CNVD-2020-10487-Bulk-verification3githubgithub.com/YounesTasra-R4z3rSw0rd/CVE-2020-19383githubgithub.com/sgdream/CVE-2020-19383githubgithub.com/Just1ceP4rtn3r/CVE-2020-1938-Tool3githubgithub.com/Warelock/cve-2020-19382githubgithub.com/h7hac9/CVE-2020-19382githubgithub.com/jptr218/ghostcat1githubgithub.com/With-fate/CVE-2020-19381githubgithub.com/shaunmclernon/ghostcat-verification1githubgithub.com/streghstreek/CVE-2020-19381githubgithub.com/Neko-chanQwQ/CVE-2020-19381githubgithub.com/acodervic/CVE-2020-1938-MSF-MODULE0githubgithub.com/whatboxapp/GhostCat-LFI-exp0githubgithub.com/I-Runtime-Error/CVE-2020-19380githubgithub.com/Umesh2807/Ghostcat0githubgithub.com/MateoSec/ghostcatch0githubgithub.com/RedTeam-Rediron/CVE-2020-19380githubgithub.com/hopsypopsy8/CVE-2020-1938-Exploitation0githubgithub.com/abrewer251/CVE-2020-1938_Ghostcat-PoC0githubgithub.com/sangrok-jeon/CVE-2020-1938-Tomcat-AJP-Ghostcat--Analysis0githubgithub.com/aidilzlkfli/Scanning0githubgithub.com/si1ence90/Ghostcat-Tomcat-AJP-Exploit-Py30githubgithub.com/cyberguardsec101-sketch/ghostcat0githubgithub.com/duckpigdog/Tomcat-AJP-CVE-2020-19380exploitdbwww.exploit-db.com/exploits/48143não verificadoexploitdbwww.exploit-db.com/exploits/49039não verificado
⚠ Recursos públicos, para você avaliar a exposição de sistemas que controla ou está autorizado a testar. Teste apenas com autorização.

Quer saber se a sua infraestrutura está exposta a isto?

Falar com a TrueHacking →