IIS 6.0/7.5 Vulnerabilities [moderate risk] - ISOWAREZ BDAY RELEASE



THIS IS A GENUINE ISOWAREZ RELEASE
********************************************************
------------------------------------------------------------------------------------------------------------------------------------------------------------
Title: Microsoft IIS 6.0 with PHP installed Authentication Bypass

Affected software:
Microsoft IIS 6.0 with PHP installed
(tested on Windows Server 2003 SP1 running PHP5)

Details:
By sending a special request to the IIS 6.0 Service running PHP the attacker can
successfully bypass access restrictions.

Take for example:
1.) IIS/6.0 has PHP installed
2.) There is a Password Protected directory configured
--> An attacker can access PHP files in the password protected
directory and execute them without supplying proper credentials.
--> Example request (path to the file): /admin::$INDEX_ALLOCATION/index.php

IIS/6.0 will gracefully load the PHP file inside the "admin" directory
if the ::$INDEX_ALLOCATION postfix is appended to directory name.
This can result in accessing administrative files and under special
circumstances execute arbirary code remotely.
------------------------------------------------------------------------------------------------------------------------------------------------------------

Title: Microsoft IIS 7.5 Classic ASP Authentication Bypass

Affected Software:
Microsoft IIS 7.5 with configured Classic ASP and .NET Framework 4.0
installed (.NET Framework 2.0 is unaffected, other .NET frameworks
have not been tested)
(tested on Windows 7)

Details:
By appending ":$i30:$INDEX_ALLOCATION" to the directory serving the
classic ASP file access restrictions can be successfully bypassed.

Take this Example:
1.) Microsoft IIS 7.5 has Classic ASP configured (it allows serving .asp files)
2.) There is a password protected directory configured that has
administrative asp scripts inside
3.) An attacker requests the directory with :$i30:$INDEX_ALLOCATION
appended to the directory name
4.) IIS/7.5 gracefully executes the ASP script without asking for
proper credentials

------------------------------------------------------------------------------------------------------------------------------------------------------------
Title: Microsoft IIS 7.5 .NET source code disclosure and authentication bypass

Affected Software:
Microsoft IIS/7.5 with PHP installed in a special configuration
(Tested with .NET 2.0 and .NET 4.0)
(tested on Windows 7)
The special configuration requires the "Path Type" of PHP to be set to
"Unspecified" in the Handler Mappings of IIS/7.5

Details:
The authentication bypass is the same as the previous vulnerabilities:
Requesting for example
http://<victimIIS75>/admin:$i30:$INDEX_ALLOCATION/admin.php will run
the PHP script without asking for proper credentials.

By appending /.php to an ASPX file (or any other file using the .NET
framework that is not blocked through the request filtering rules,
like misconfigured: .CS,.VB files)
IIS/7.5 responds with the full source code of the file and executes it
as PHP code. This means that by using an upload feature it might be
possible (under special circumstances) to execute arbitrary PHP code.
Example: Default.aspx/.php



Cheerio and signed,

/Kingcope



Relevant Pages

  • [Full-disclosure] IIS 6.0/7.5 Vulnerabilities [moderate risk] - ISOWAREZ BDAY RELEASE
    ... Microsoft IIS 6.0 with PHP installed Authentication Bypass ... Microsoft IIS 7.5 with configured Classic ASP and .NET Framework 4.0 ...
    (Full-Disclosure)
  • PHP not executing, IIS 6
    ... Hi, I'm attempting to run PHP on Microsoft IIS 6.0, and the PHP will ... not execute. ... When I request http://localhost/test.php I get a blank page. ...
    (comp.lang.php)
  • Re: PHP Phalanger for Delphi.Net
    ... It says that it is a PHP compiler or .Net framework, hopefully what CodeGear has in mind will be more RAD and support targeting Win32/Xp/Vista and Linux/Unix etc... ... Since the point for doing PHP is xplatform web deployment. ... since I am on the subject, CG's PHP entry should be RAD for development but also play nice to allow the Web Designer to control the presentation layer via templates or a Skin. ...
    (borland.public.delphi.non-technical)
  • Re: Windows 2000: still planning to use it?
    ... Since my apps needs (currently, and I don't plan great changes in the near future) .NET framework 2.0; PERL language and PHP, I think that that could continue to run there on IIS. ...
    (microsoft.public.windows.server.general)
  • Re: com_dotnet
    ... It appears PHP ... .net support has nothing to do with .net being installed on a system, ... the .net framework is well over 50MB. ... MySQL support would be enabled whether or not the MySQL libraries are installed or not. ...
    (comp.lang.php)