{
	"id": "7111422b-edb6-4bc7-8c8d-f926ef231897",
	"created_at": "2023-01-12T15:02:34.883491Z",
	"updated_at": "2026-11-16T08:58:20.058918Z",
	"deleted_at": null,
	"sha1_hash": "06d2f1593890dc9625ecce45d860dbfebadd3db7",
	"title": "2021-08-30 - ProxyToken- An Authentication Bypass in Microsoft Exchange Server",
	"llm_title": "ProxyToken: An Authentication Bypass in Microsoft Exchange Server",
	"authors": "",
	"file_creation_date": "2022-05-29T10:52:32Z",
	"file_modification_date": "2022-05-29T10:52:32Z",
	"file_size": 245180,
	"plain_text": "1/3\r\nAugust 30, 2021\r\nProxyToken: An Authentication Bypass in Microsoft Exchange\r\nServer\r\nzerodayinitiative.com/blog/2021/8/30/proxytoken-an-authentication-bypass-in-microsoft-exchange-server\r\nAugust 30, 2021 | Simon Zuckerbraun\r\nSUBSCRIBE\r\nContinuing with the theme of serious vulnerabilities that have recently come to light in Microsoft\r\nExchange Server, in this article we present a new vulnerability we call ProxyToken. It was reported to\r\nthe Zero Day Initiative in March 2021 by researcher Le Xuan Tuyen of VNPT ISC, and it was patched by\r\nMicrosoft in the July 2021 Exchange cumulative updates. Identifiers for this vulnerability are CVE-2021-\r\n33766 and ZDI-CAN-13477.\r\nWith this vulnerability, an unauthenticated attacker can perform configuration actions on mailboxes\r\nbelonging to arbitrary users. As an illustration of the impact, this can be used to copy all emails\r\naddressed to a target and account and forward them to an account controlled by the attacker.\r\nThe Trigger\r\nThe essential HTTP traffic needed to trigger the vulnerability is as follows:\r\n“SecurityToken=x”? What might this be, some secret backdoor access code?\r\nUnderstanding the Root Cause\r\nTo understand what has happened here, it is necessary to discuss a bit about the architecture of\r\nExchange Server. Recently, security researcher Orange Tsai has done excellent work in this area, and\r\nreaders are encouraged to read his full findings here as well as the recent guest blog he wrote on this\r\nsite. However, for the purposes of this particular vulnerability, the salient points will be summarized\r\nbelow.\r\nMicrosoft Exchange creates two sites in IIS. One is the default website, listening on ports 80 for HTTP\r\nand 443 for HTTPS. This is the site that all clients connect to for web access (OWA, ECP) and for\r\nexternally facing web services. It is known as the “front end”. The other site is named “Exchange Back\r\nEnd” and listens on ports 81 for HTTP and 444 for HTTPS.\r\nThe front-end website is mostly just a proxy to the back end. To allow access that requires forms\r\nauthentication, the front end serves pages such as /owa/auth/logon.aspx . For all post-authentication requests, the front end’s main role is to repackage the requests and proxy them to\r\ncorresponding endpoints on the Exchange Back End site. It then collects the responses from the back\r\nend and forwards them to the client.\n\n2/3\r\nExchange is a highly complex product, though, and this can lead to some wrinkles in the usual flow. In\r\nparticular, Exchange supports a feature called “Delegated Authentication” supporting cross-forest\r\ntopologies. In such deployments, the front end is not able to perform authentication decisions on its\r\nown. Instead, the front end passes requests directly to the back end, relying on the back end to\r\ndetermine whether the request is properly authenticated. These requests that are to be authenticated\r\nusing back-end logic are identified by the presence of a SecurityToken cookie:\r\nIn Microsoft.Exchange.HttpProxy.ProxyModule.SelectHandlerForUnauthenticatedRequest :\r\nThus, for requests within /ecp , if the front end finds a non-empty cookie named SecurityToken , it\r\ndelegates authentication to the back end.\r\nCode on the back end that examines and validates the SecurityToken cookie is found in the class\r\nMicrosoft.Exchange.Configuration.DelegatedAuthentication.DelegatedAuthenticationModule .\r\nWhat goes wrong on the validation side? To see the answer, have a look at /ecp/web.config on the\r\nback end:\r\nAs you can see, in a default configuration of the product, a \u003cremove\u003e element appears, so that the\r\nmodule DelegatedAuthModule will not be loaded at all for the back-end ECP site.\r\nIn summary, when the front end sees the SecurityToken cookie, it knows that the back end alone is\r\nresponsible for authenticating this request. Meanwhile, the back end is completely unaware that it needs\r\nto authenticate some incoming requests based upon the SecurityToken cookie, since the\r\nDelegatedAuthModule is not loaded in installations that have not been configured to use the special\r\ndelegated authentication feature. The net result is that requests can sail through, without being\r\nsubjected to authentication on either the front or back end.\r\nBagging a Canary\r\nThere is one additional hurdle to clear before we can successfully issue an unauthenticated request, but\r\nit turns out to be a minor one. Each request to an /ecp page is required to have a ticket known as the\r\n“ECP canary”. Without a canary, the request will come back with an HTTP 500. However, the attacker is\r\nstill in luck, because the 500 error response is accompanied by a valid canary:\n\n3/3\r\nAn example of the final request would then be as follows:\r\nThis particular exploit assumes that the attacker has an account on the same Exchange server as the\r\nvictim. It installs a forwarding rule that allows the attacker to read all the victim’s incoming mail. On\r\nsome Exchange installations, an administrator may have set a global configuration value that permits\r\nforwarding rules having arbitrary Internet destinations, and in that case, the attacker does not need any\r\nExchange credentials at all. Furthermore, since the entire /ecp site is potentially affected, various\r\nother means of exploitation may be available as well.\r\nConclusion\r\nExchange Server continues to be an amazingly fertile area for vulnerability research. This can be\r\nattributed to the product’s enormous complexity, both in terms of feature set and architecture. We look\r\nforward to receiving additional vulnerability reports in the future from our talented researchers who are\r\nworking in this space. Until then, follow the team for the latest in exploit techniques and security\r\npatches.\r\nMicrosoft\r\nExchange\r\nExploit\r\nBACK TO THE BLOG",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"VXUG"
	],
	"origins": [
		"pdf"
	],
	"references": [
		"https://papers.vx-underground.org/papers/Malware Defense/Malware Analysis 2021/2021-08-30 - ProxyToken- An Authentication Bypass in Microsoft Exchange Server.pdf"
	],
	"report_names": [
		"2021-08-30 - ProxyToken- An Authentication Bypass in Microsoft Exchange Server.pdf"
	],
	"threat_actors": [],
	"ts_created_at": 1673535754,
	"ts_updated_at": 1794819500,
	"ts_creation_date": 1653821552,
	"ts_modification_date": 1653821552,
	"files": {
		"pdf": "https://archive.orkl.eu/06d2f1593890dc9625ecce45d860dbfebadd3db7.pdf",
		"text": "https://archive.orkl.eu/06d2f1593890dc9625ecce45d860dbfebadd3db7.txt",
		"img": "https://archive.orkl.eu/06d2f1593890dc9625ecce45d860dbfebadd3db7.jpg"
	}
}