Bài liên quan
Advisory: Directory Traversal in DevExpress ASP.NET File ManagerDuring a penetration test RedTeam Pentesting discovered a directorytraversal vulnerability in DevExpress' ASP.NET File Manager and FileUpload. Attackers are able to read arbitrary files by specifying aDetails=======Product: DevExpress ASPxFileManager Control for WebForms and MVCAffected Versions: DevExpress ASPxFileManager v10.2 to v13.2.8Fixed Versions: DevExpress ASPxFileManager v13.2.9Vulnerability Type: Directory TraversalSecurity Risk: highVendor URL: https://www.devexpress.com/Products/NET/Controls/ASP/File-Upload-Explorer/Vendor Status: fixed version releasedAdvisory URL: https://www.redteam-pentesting.de/advisories/rt-sa-2014-006Advisory Status: publishedCVE: CVE-2014-2575CVE URL: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-2575Introduction============"The DevExpress ASP.NET Subscription includes a standalone Multi-FileUpload Manager for WebForms and MVC and a pre-built File Manager forWebForms; built so you can instantly introduce file managementcapabilities in your next web application."(from DevExpress' Homepage)More Details============The ASPX File Manager component is prone to a directory traversalvulnerability. Attackers with access to the File Manager component canread arbitrary files on the same partition as the shared directory.A common request to download a file via the File Manager componentrequires multiple HTTP-Post parameters:__EVENTTARGET=ctl00%24ContentPlaceHolder1%24ASPxFileManager1__EVENTARGUMENT=13%7C<file.ext>__EVENTVALID=The parameter __EVENTARGUMENT=13|<file.ext> specifies a file downloadand the file which is to be downloaded. Attackers may also request filesoutside of the shared directory by prepending a relative path to aparent directory.Proof of Concept================By requesting files with a relative path, files otherwise not availablewill be accessible through the File Manager component. Depending on theshared directory and the webserver configuration, the webserverconfiguration file might for example be accessible through the FileManager component:__EVENTARGUMENT=13|../../web.configOther sensitive operating system files could be affected, too.Example exploit:------------------------------------------------------------------------curl --data __EVENTTARGET=ctl00%24ContentPlaceHolder1%24ASPxFileManager1\"&__EVENTARGUMENT=13%7C../../web.config&=&__EVENTVALID" \http://example.com/FileManagerComponent.aspx------------------------------------------------------------------------The request above will download the specified file.Workaround==========Instead of a physical file system provider, a database file systemprovider with limited access permissions could be used.Fix===Update ASPxFileManager control to DevExpress libraries version v13.2.9.Security Risk=============The risk is estimated to be high. This vulnerability allows attackers toaccess arbitrary files on the same partition as the File Manager's rootdirectory. This may allow attackers to read sensitive information likethe webserver configuration.Timeline========2014-03-10 Vulnerability identified2014-03-21 Customer approved disclosure to vendor2014-03-21 CVE number requested and assigned2014-03-25 Vendor notified2014-04-11 Customer opened support ticket with vendor2014-04-17 Vendor released fixed version2014-04-17 Vendor released security advisory to customers2014-06-05 Advisory releasedReferences==========Vendor Security Advisory:http://security.devexpress.com/de7c4756/?id=ff8c1703126f4717993ac3608a65a2e2RedTeam Pentesting GmbH=======================RedTeam Pentesting offers individual penetration tests, short pentests,performed by a team of specialised IT-security experts. Hereby, securityweaknesses in company networks or products are uncovered and can befixed immediately.As there are only few experts in this field, RedTeam Pentesting wants toshare its knowledge and enhance the public knowledge with research insecurity related areas. The results are made available as publicsecurity advisories.More information about RedTeam Pentesting can be found athttps://www.redteam-pentesting.de.-- RedTeam Pentesting GmbH Tel.: +49 241 510081-0 Dennewartstr. 25-27 Fax : +49 241 510081-99 52068 Aachen https://www.redteam-pentesting.de Germany Registergericht: Aachen HRB 14004 Geschäftsführer: Patrick Hof, Jens Liebchen
Post a Comment