Microsoft Warns of ASP.NET Attacks

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

Microsoft is warning users it has seen “limited attacks” targeting an ASP.NET vulnerability that could potentially affect many Web applications.

The issue, which was demonstrated by security researchers Juliano Rizzo and Thai Duong, is due to ASP.NET’s use of encryption padding, which provides information in error messages that can be used by an attacker to potentially read and alter encrypted data. Duong and Rizzo designed a tool to exploit the vulnerability, which they presented at the Ekoparty security conference in Buenos Aires, Argentina, last week.

“An attacker who successfully exploited this vulnerability would be able to read data, such as the View State, which was encrypted by the server,” Microsoft warned in an advisory. “This data may also be tampered with by the attacker…[who] could send this data back to the server and observe the error codes returned by the server. By observing these error codes, an attacker could gain enough information to decrypt and tamper with the encrypted data.”

“An attacker who successfully exploited this vulnerability could also read data from files on the target server, such as web.config, which the worker process identity already has access to,” Microsoft added.

Microsoft said it is working on a fix. In the meantime, enabling ASP.NET custom errors and mapping all error codes to the same error page can serve as a workaround. Instructions on how to do that are contained within the Microsoft advisory. The company’s SharePoint team warned that the issue affects SharePoint 2010 and SharePoint Foundation 2010, which require a slightly different workaround detailed here.

The publicly disclosed exploit can be used against all types of ASP.NET Applications, including both Web Forms and MVC, blogged Scott Guthrie, corporate vice president of the Microsoft Developer division. Configuring a custom 404 error page response and a default redirect for all other errors still lets an attacker distinguish between a 404 and other errors, he noted. Likewise, a custom logging module is only effective as a mitigation if the responses it sends out do not let an attacker draw a distinction between error messages through either their content or the “time that it takes to serve out.”

Advertisement

“It is always a best practice to encrypt sensitive configuration data within web.config files,” he added. “That way if your web.config file is ever exposed, attackers cannot use its contents maliciously.”

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 は、市場で入手可能なすべての企業やすべての種類の製品を掲載しているわけではありません。