Trustwave SpiderLabs Uncovers Ov3r_Stealer Malware Spread via Phishing and Facebook Advertising. Learn More

Trustwave SpiderLabs Uncovers Ov3r_Stealer Malware Spread via Phishing and Facebook Advertising. Learn More

Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Microsoft Exchange Server Attacks
Stay protected against emerging threats
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
SpiderLabs Blog

Virtual Patch for ASP.Net Forms Authentication Bypass Vulnerability (CVE-2011-3416)

Last Thursday, Microsoft released an out-of-band security patch (MS11-100) which includes a fix for CVE-2011-3416:

An elevation of privilege vulnerability exists in the way that .NET Framework authenticates users. In order to exploit this vulnerability, an unauthenticated attacker would need to be able to register an account on the ASP.NET application, and must know an existing account name for a targeted user. The attacker could then craft a special web request using a previously registered account name to gain access to that account. The attacker could then take any action in the context of the targeted user, including executing arbitrary commands on the site.

This vulnerability is described in more detail in the following advisory:

Vulnerability overview/description:-----------------------------------The null byte termination vulnerability exists in theCopyStringToUnAlingnedBuffer() function of the webengine4.dll library used bythe .NET framework. The unicode string length is determined using the lstrlenWfunction. The lstrlenW function returns the length of the string, incharacters not including the terminating null character. If the unicode stringcontaining a null byte is passed, its length is incorrectly calculated, so onlycharacters before the null byte are copied into the buffer.This vulnerability can be leveraged into an authentication bypassvulnerability. Microsoft ASP.NET membership system depends on theFormsAuthentication.SetAuthCookie(username, false) method for certainfunctionality. By exploiting this vulnerability an attacker is able to log onas a different existing user with all the privileges of the targeted user(e.g. admin).Proof of concept:-----------------Detailed exploit information and source code references have been removed fromthis advisory.An attacker is able to bypass authentication in certain functionality usingnull bytes and log on as another user, e.g. admin.

Even though the full PoC code was redacted from the vulnerability announcement, Trustwave SpiderLabs Research Team was able to obtain example attack payloads through our MAPP (Microsoft's Active Protections Program) membership. Based on that data, we have created the following ModSecurity virtual patch to identify exploit attempts:

SecRule REQUEST_METHOD "@streq POST" "chain,phase:2,t:none,log,block,id:'2100000',msg:'Trustwave SpiderLabs Alert - Possible Elevation of Privilege Attack against .Net.',tag:'',tag:''"        SecRule REQUEST_FILENAME "@contains /Membership/CreatingUserAccounts.aspx" "chain"                SecRule ARGS:/\$CreateUserStepContainer\$UserName$/ "@validateByteRange 1-255"

This virtual patch is also included within the commercial ModSecurity Rules from Trustwave SpiderLabs along with many other virtual patches created by the SpiderLabs Research Team.

Latest SpiderLabs Blogs

Welcome to Adventures in Cybersecurity: The Defender Series

I’m happy to say I’m done chasing Microsoft certifications (AZ104/AZ500/SC100), and as a result, I’ve had the time to put some effort into a blog series that hopefully will entertain and inform you...

Read More

Trustwave SpiderLabs: Insights and Solutions to Defend Educational Institutions Against Cyber Threats

Security teams responsible for defending educational institutions at higher education and primary school levels often find themselves facing harsh lessons from threat actors who exploit the numerous...

Read More

Breakdown of Tycoon Phishing-as-a-Service System

Just weeks after Trustwave SpiderLabs reported on the Greatness phishing-as-a-service (PaaS) framework, SpiderLabs’ Email Security team is tracking another PaaS called Tycoon Group.

Read More