what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

.NET Form Authentication Insecure Redirect

.NET Form Authentication Insecure Redirect
Posted Mar 21, 2012
Authored by Irene Abezgauz | Site seekersec.com

.NET Form Authentication suffers from an insecure redirect vulnerability.

tags | exploit
SHA-256 | b7d5029d3689d071162b8d70d1707c61e41f2ed9e7f4e037b358ca18559e4141

.NET Form Authentication Insecure Redirect

Change Mirror Download
Seeker Research Center Security Advisory
By Irene Abezgauz

===========
I. Overview
===========

An Insecure Redirect vulnerability has been identified in the .NET Form
Authentication - in the Redirect From Login mechanism. This
vulnerability allows an attacker to craft links that contain redirects
to malicious sites in the ReturnURL parameter.

The exploitation technique detailed in this document bypasses the
CrossAppRedirects restriction and was successfully performed on
applications that do not have EnableCrossAppRedirects in the web.config
(false by default), or have the EnableCrossAppRedirects attribute
explicitly set to false in web.config.

A friendly formatted version of this advisory is available at:
http://www.seekersec.com/advisories/AdvMS20120216.html

============
II. Details
============

The .NET Forms Authentication Redirect From Login mechanism is
vulnerable to insecure redirect attacks.

http://<myApplication>/Login.aspx?ReturnURL=
By sending specially crafted input containing a backslash ("\") at the
end of the URL as the value of the ReturnURL parameter it is possible to
bypass the CrossAppRedirects restrictions and embed links that lead to
sites outside the current application.

Once a victim follows the specially crafted link he indeed arrives at
the login screen of the vulnerable application. Once he submits his
username and password and performs a successful login instead of being
redirected to the URL in the DefaultURL property he will be redirected
to the URL in the value of the ReturnURL parameter.

To reproduce a simple Login page can be created, for example Login.aspx,
and the following in web.config:

<authentication mode="Forms">
<forms name=".ASPXFORMSDEMO" loginUrl="Login.aspx"
protection="All" path="/" timeout="30" />
</authentication>

===========
IV. Exploit
===========

An attacker can embed any link that terminates with the "\" (backslash)
character, for example:
http://<myApplication>/Login.aspx?ReturnURL=http://www.seekersec.com\

==================
V. Vendor Response
==================

Microsoft has released a fix for this vulnerability, see
http://technet.microsoft.com/en-us/security/bulletin/MS11-100 for
further information

=====================
VII. Affected Systems
=====================

.NET frameworks 2.0, 3.5 and 4.0 were tested and found vulnerable to
this flaw in simple login that has Form Authentication web.config
configuration with default parameters.

============
VIII. Credit
============
The vulnerability was discovered by Irene Abezgauz, Seeker Security

--------------------
Irene Abezgauz
Product Manager
Seeker Security
www.seekersec.com
E-Mail: irene@seekersec.com

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    0 Files
  • 17
    Apr 17th
    0 Files
  • 18
    Apr 18th
    0 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close