Ferruh passed this onto me and this looks like a really interesting vulnerability. Essentially if you can upload a file with semicolon(;) in it, you may be able to upload and execute asp code.
IIS can execute any extension as an Active Server Page or any other executable extension. For instance “malicious.asp;.jpg” is executed as an ASP file on the server. Many file uploaders protect the system by checking only the last section of the filename as its extension. And by using this vulnerability, an attacker can bypass this protection and upload a dangerous executable file on the server.
Original Advisory can be found here
For some reason, i never considered core impact an option for web application assessment. But recently i tested the web application RPT module of core impact and found it quite cool. It successfully exploited the Oracle SQL Injection and returned a SQL shell and much to my surprise a OS command shell.
It did the same against the MS-SQL apps too. A closer look at oracle sql injection exploit revealed that core uses the same dbms_export_extension exploit which bsqlbf and pangolin uses. To obtain the shell with one click in a gui is always cool, less geeky though
.

On the note of using commercial tools, another 2 tools which i have found very useful are:
Burp suite
Netsparker
While everyone knows about burp suite, its small features such as ‘AMF decoding/encoding’, invisible proxy, intruder with regex support, right click-> send to scanner feature etc makes it a perfect tool. The burp scanner’s xss module is just brilliant.
Netsparker is probably a tool which not too many people have heard of. Its an automated web application Its developed by Ferruh Mavituna, who knows this art very well. The tool has so far, given me minimal false positives and at the same time helped in identifying some complex SQL injections you will ever come across(example deep blind injections involving time delays).
More on commercial tools later..
Stefen posted his slides on “Shocking News in PHP Exploitation”. Besides talking about PHP vulnerabilities, stefen has discussed some great attack vectors for bypassing Mod-security, php-ids and WAFs.
Here is a good example, from his slides, on how mod-security can be bypassed:
—–
Rules apply all transformation functions first
• t:none – reset
• t:urlDecodeUni – url decoding with unicode support
• t:htmlEntityDecode – decodes HTML entities
• t:replaceComments – removes all comments
• t:compressWhitespace – compresses whitespace
—-

—
Download Slides
Often while doing Internal Infrastructure assessments, its common to find unrestricted access to JBOSS JMX console. This web interface allows deployment of arbitrary war files. Here is an excellent article describing the process:
http://www.nruns.com/_downloads/Whitepaper-Hacking-jBoss-using-a-Browser.pdf
Here is a war file, ready to use: cmd.war (zipped)
Once deployed check for this file on the vulnerable jboss: http://victim:8080/cmd/cmd.jsp
Happy Hacking
I will be conducting 2 one day Oracle Security Trainings in november and december.
November 19th 2009:
Venue: New Delhi, India
Course Agenda/Outline: http://securitybyte.org/index.php/trainings/sessions/1-day-tracks/62-hacking-and-securing-oracle-database-.html
At Owasp India, I will also be giving a talk. The talk is titled, ‘Hacking Oracle From Web’. Here I will discuss some advanced techniques for exploiting SQL/PLSQL Injections targeting Oracle back-end along with the security problems with other Oracle components such as Oracle Application Servers, Application Portal, Secure Back-up etc.
December 14th 2009
Venue: 7Safe, Sawston, Cambridge, U.K
Course Agenda/Outline:
http://7safe.com/oracle_database_security_training_course.htm