
S2-045 vulnerabilità POC-TOOLS CVE-2017-5638
#CNVD-ID CNVD-2017-02474 Data di pubblicazione 2017-03-07 Livello di pericolosità Alto (AV:N/AC:L/Au:N/C:C/I:C/A:C) Prodotti interessati Apache struts >=2.3.5,<=2.3.31 Apache struts >=2.5,<=2.5.10 CVE ID CVE-2017-5638 Descrizione della vulnerabilità Apache Struts è un framework open source per la creazione di applicazioni Web Java a livello enterprise. Apache Struts2 presenta una vulnerabilità di esecuzione remota di codice S2-045. Un attaccante remoto può sfruttare questa vulnerabilità per ottenere direttamente il controllo del server web.
#Tipo di vulnerabilità Vulnerabilità generica di software/hardware
#URL di riferimento https://cwiki.apache.org/confluence/display/WW/S2-045 Soluzione della vulnerabilità Apache Struts ha corretto la vulnerabilità nelle nuove versioni rilasciate. Si consiglia agli utenti che utilizzano il modulo Jakarta Multipart parser di aggiornare ad Apache Struts versione 2.3.32 o 2.5.10.1: #https://cwiki.apache.org/confluence/display/WW/S2-045
#Summary Possible Remote Code Execution when performing file upload based on Jakarta Multipart parser. Who should read this All Struts 2 developers and users Impact of vulnerability Possible RCE when performing file upload based on Jakarta Multipart parser Maximum security rating High Recommendation Upgrade to Struts 2.3.32 or Struts 2.5.10.1 Affected Software:Struts 2.3.5 - Struts 2.3.31, Struts 2.5 - Struts 2.5.10 Reporter Nike Zheng dot zheng at dbappsecurity dot com dot cn> CVE Identifier CVE-2017-5638 Problem It is possible to perform a RCE attack with a malicious Content-Type value. If the Content-Type value isn't valid an exception is thrown which is then used to display an error message to a user. Solution If you are using Jakarta based file upload Multipart parser, upgrade to Apache Struts version 2.3.32 or 2.5.10.1. You can also switch to a different implementation of the Multipart parser. Backward compatibility No backward incompatibility issues are expected. Workaround Implement a Servlet filter which will validate Content-Type and throw away request with suspicious values not matching multipart/form-data.