Microsoft Releases Security Advisory for ASP.NET Vulnerability

執筆者
Brian Prince
Brian Prince
Published: Sep 19, 2010
Updated: Feb 2, 2021
2 minute read
eWeek のコンテンツおよび製品のおすすめは、編集上の独立性を保っています。パートナーへのリンクをクリックすると、当社が報酬を得る場合があります。 詳細を見る

Microsoft issued a security advisory Sept. 17 with a workaround for a vulnerability impacting Web applications built on ASP.NET.

The advisory was in response to findings by security researchers Juliano Rizzo and Thai Duong, who developed the “Padding Oracle Exploit Tool” to demonstrate the attack. At the heart of the issue is a vulnerability in the way ASP.NET implements encryption to protect data. The problem, Microsoft said, is caused by ASP.NET providing Web clients details in error messages when decrypting certain ciphertext.

“An oracle in the context of cryptography is a system which provides hints as you ask it questions,” explained Kevin Brown, Microsoft Security Response Center Engineering, in a post on Microsoft’s Security Research & Defense blog. “In this case, there is a vulnerability in ASP.NET which acts as a padding oracle. This allows an attacker to send chosen cipher text to the server and learn if it was decrypted properly by examining which error code was returned by the server.

“By making many requests the attacker can learn enough to successfully decrypt the rest of the cipher text,” he continued. “The attacker can then alter the plain text and re-encrypt it as well.”

If the ASP.NET application stores sensitive information, such as passwords or database connection strings, in the ViewState object the data could be compromised, Brown blogged.

“The ViewState object is encrypted and sent to the client in a hidden form variable, so it is a possible target of this attack,” he wrote. “If the ASP.NET application is using ASP.NET 3.5 SP1 or above, the attacker could use this encryption vulnerability to request the contents of an arbitrary file within the ASP.NET application.”

“The public disclosure demonstrated using this technique to retrieve the contents of web.config,” he added, noting that any “file in the ASP.NET application which the worker process has access to will be returned to the attacker.”

Microsoft said it is planning an update to address the issue, and as of Sept. 17 was not aware of any attacks targeting the flaw. According to the advisory, using Triple DES encryption instead of AES encryption will have no effect, since the “cryptographic vulnerability being presented involves revealing cryptographic padding errors to a client for algorithms that use PKCS #7 padding” and Triple DES shares that padding mode with AES.

Advertisement

As a workaround, the company recommends enabling ASP.NET custom errors and mapping all error codes to the same error page to make it more difficult for an attacker to distinguish the different types of errors. Advice on how to do that is contained within the advisory.

Brian Prince

Brian Prince

Content Writer
eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

TechnologyAdvice が所有・運営しています。 © 2026 TechnologyAdvice. 無断転載を禁じます

広告主に関する開示:このサイトに掲載されている製品の一部は、TechnologyAdvice が報酬を受け取っている企業のものです。この報酬は、製品がこのサイトのどこにどのように表示されるか(表示される順序など)に影響する場合があります。TechnologyAdvice は、市場で入手可能なすべての企業やすべての種類の製品を掲載しているわけではありません。