|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have been monitoring one of the latest injection hack attempts since early July. The attack is pervasive and appears to be powered through one or several of the larger Botnets. The attack, whether successful or not is not hard to miss. It shows up as a rather lengthy piece of hexadecimal code in your server logs with the visible commands DECLARE, SET and CAST.
Watch your server logs for something like this: ;DECLARE%20@S%20CHAR(4000);SET%20@S=CAST(0×4445434 C415245204054207661726368617228323535292C404320766 17263686172 I've written a brief article about the subject with the decoded injection and the js from the originating site in China: douhunqn.cn. I also include .htaccess info for preventing the attack. Read the article here
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
|||
|
I am always happy to help. Keep you software up to date, thoroughly validate all variables and keep a close eye on your web or server traffic, and you'll be fine.
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
||||
|
|
|
|||
|
Quote:
Latest injection attacks from www0.douhunqn.cn As you can see, this specific Chinese site has been quite prolific at spreading malware.
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
||||
|
I thought of writing an open letter to Google. Here are the ideas:
Google is my default SE on Opera and Clusty the default engine on the speed dial page (you have fairly good control of domains / Ip's with that configuration). Configuration on Opera is very easy. "Adding new searches Opera comes with a useful set of default search engines, but you may want to add some of your own favorite searches to the mix. Adding a new search is most conveniently done as follows: (My addition: CTRL + F12 gives you an overview)
In the expanded dialog, you can also edit the search string directly and specify that the POST method should be used for this search".
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 08-29-2008 at 12:17 PM. |
|
||||
|
Would you recommend adding in the .htaccess for example this too?
## DENY REQUEST BASED ON REQUEST METHOD ### RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS|HEAD)$ [NC] RewriteRule ^.*$ - [F]
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
Quote:
I would suggest blocking those methods unless you have specific reasons for allowing them. For those unfamiliar with the above choices check out Method Definitions.
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
||||
|
Tech Manager thanks for the heads up. I already added in my .htaccess this:
RewriteEngine On Options +FollowSymLinks ServerSignature Off RewriteCond %{REQUEST_URI} ^/(,|;| RewriteCond %{QUERY_STRING} ^.*(;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|updat e|md5|benchmark).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC] RewriteRule ^(.*)$ http://www.kissmyassyousonofabitch.com
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
I like your ending redirect.
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
||||
|
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
||||
|
We recently prevented an attack with one of the rules we use in our .htaccess file, in addition to our firewall settings and just thought of sharing. We have absolutely no bad bots on our site since we use all this:
Code:
################################################## ########## Created by John. S. Britsios ########## ########## SEO Workers Search Engine Optimization Consulting Company ########## ################################################## ##### Security settings ##### ## LIMIT UPLOAD FILE SIZE TO PROTECT AGAINST DOS ATTACK by limiting file size to 0-2147483647 bytes, (2GB)### LimitRequestBody 10240000 ### Prevent .htaccess, .htpasswd and other files from being viewed by web clients ### <FilesMatch "\.(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$"> Order Allow,Deny Deny from all </FilesMatch> RewriteEngine On Options +FollowSymLinks ServerSignature Off RewriteCond %{REQUEST_URI} ^/(,|;|:|<|>|”>|”<|/|\\\.\.\\).{0,9999}.* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC,OR] RewriteCond %{QUERY_STRING} ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC] RewriteRule ^(.*)$ http://www.kissmyassyousonofabitch.com ## DENY REQUEST BASED ON REQUEST METHOD ### # Check here before using HTTP/1.1: Method Definitions # #RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS|HEAD)$ [NC] #RewriteRule ^.*$ - [F] ### Deny Fake Bots ### BrowserMatch "^Java/?[1-9_\.]*" bad_bot BrowserMatch "^MJ12bot/?[1-9_\.]*" bad_bot SetEnvIfNoCase User-Agent "^8484 Boston Project/?[1-9_\.]*" bad_bot SetEnvIfNoCase User-Agent "charlotte/" bad_bot SetEnvIfNoCase User-Agent "curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5" bad_bot SetEnvifNoCase User-Agent "^Heritrix/" bad_bot SetEnvIfNoCase User-Agent "ia_archiver" bad_bot SetEnvIfNoCase User-Agent "larbin/" bad-bot SetEnvIfNoCase User-Agent "libwww-perl"" bad_bot SetEnvIfNoCase User-Agent "^libcurl-agent/" bad_bot SetEnvifNoCase User-Agent "IRC-Bbot" bad_bot SetEnvifNoCase User-Agent "ISC Systems iRc Search 2.1" bad_bot SetEnvIfNoCase User-Agent "^Jakarta\ Commons-HttpClient/" bad_bot SetEnvIfNoCase User-Agent "^Java/" bad_bot SetEnvIfNoCase User-Agent "^Microsoft\ URL\ Control.*$" bad_bot SetEnvIfNoCase User-Agent "^MJ12bot/" bad_bot SetEnvIfNoCase User-Agent "MJ12bot/v1.0.8" bad_bot SetEnvIfNoCase User-Agent "^Missigua Locator" bad_bot SetEnvIfNoCase User-Agent "^Mozilla/4\.0\ .*Win\ 9x\ 4\.90.*$" bad_bot SetEnvIfNoCase User-Agent "Nutch" bad_bot SetEnvIfNoCase User-Agent "^PEAR HTTP_Request class" bad_bot SetEnvIfNoCase User-Agent "phpversion" bad_bot SetEnvIfNoCase User-Agent "^psycheclone" bad_bot SetEnvIfNoCase User-Agent "^TencentTraveler" bad_bot SetEnvIfNoCase User-Agent "^Web Downloader" bad_bot SetEnvIfNoCase User-Agent "^Wells Search II" bad_bot SetEnvIfNoCase User-Agent "^WEP Search 00" bad_bot <FilesMatch "(.*)"> Order Allow,Deny Allow from all Deny from env=bad_bot </FilesMatch> RewriteEngine on RewriteBase / # Known Bad Bots RewriteCond %{HTTP_USER_AGENT} ADSARobot|ah-ha|almaden|aktuelles|Anarchie|amzn_assoc|Arachmo|ASPSeek|ASSORT|ATHENS|Atomz|attach|attache|autoemailspider|BackWeb|Bandit|BatchFTP|bdfetch|Bbot|BecomeBot|big.brother|Bitacle|BlackWidow|bmclient|boitho.com-dc|Boston\ Project|bot/1.0|BravoBrian\ SpiderEngine\ MarcoPolo|Bot\ mailto:craftbot@yahoo.com|Buddy|Bullseye|bumblebee|capture|CherryPicker|ChinaClaw|CICC|clipping|Clushbot|Collector|Copier|Crescent|Crescent\ Internet\ ToolPak|Custo|cyberalert|Deweb|diagem|Digger|Digimarc|DIIbot|DISCo|DISCo\ Pump|DISCoFinder|Download\ Demon|Download\ Wonder|Downloader|Drip|DSurf15a|DTS.Agent|EasyDL|eCatch|ecollector|efp@gmx\.net|Email\ Extractor|EirGrabber|email|EmailCollector|EmailSiphon|EmailWolf|Express\ WebPictures|ExtractorPro|EyeNetIE|FavOrg|fastlwspider|Favorites\ Sweeper|Fetch|FEZhead|FileHound|FlashGet\ WebWasher|FlickBot|fluffy|FrontPage|GalaxyBot|Generic|Getleft|GetRight|GetSmart|GetWeb!|GetWebPage|gigabaz|Girafabot|Go\!Zilla|Go!Zilla|Go-Ahead-Got-It|GornKer|gotit|Grabber|GrabNet|Grafula|Green\ Research|grub-client|Harvest|heritrix|hhjhj@yahoo|hloader|HMView|HomePageSearch|http\ generic|HTTrack|httpdown|httrack|ia_archiver|IBM_Planetwide|Image\ Stripper|Image\ Sucker|imagefetch|IncyWincy|Indy*Library|Indy\ Library|informant|Ingelin|InterGET|Internet\ Ninja|InternetLinkagent|Internet\ Ninja|InternetSeer\.com|Iria|Irvine|JBH*agent|JetCar|JOC|JOC\ Web\ Spider|JustView|kalooga|KWebGet|Lachesis|larbin|Leacher|LeechFTP|LexiBot|lftp|likse|Link|Link*Sleuth|LINKS\ ARoMATIZED|LinkWalker|LWP|lwp-trivial|Mag-Net|Magnet|Mac\ Finder|Mag-Net|Mass\ Downloader|MCspider|MJ12bot/v1\.0\.8|Memo|Microsoft.URL|MIDown\ tool|Mirror|Missigua\ Locator|Mister\ PiX|MMMtoCrawl\/UrlDispatcherLLL|monit|^Mozilla$|Mozilla.*Indy|Mozilla.*NEWT|Mozilla*MSIECrawler|MS\ FrontPage*|MSFrontPage|MSIECrawler|MSProxy|MSR-ISRCCrawler|multithreaddb|my-heritrix-crawler|nationaldirectory|Navroad|NearSite|NetAnts|NetCarta|NetMechanic|netprospector|NetResearchServer|NetSpider|Net\ Vampire|NetZIP|NetZip\ Downloader|NetZippy|NEWT|NICErsPRO|Ninja|NPBot|NicheBot|noxtrumbot|Octopus|Offline\ Explorer|Offline\ Navigator|OmniExplorer|OpaL|Openfind|OpenTextSiteCrawler|OrangeBot|PageGrabber|Papa\ Foto|PackRat|pavuk|pcBrowser|PersonaPilot|Ping|PingALink|Pingdom|Pockey|POE-Component-Client-HTTP|Powermarks|Proxy|psbot|PSurf|psycheclone|puf|Pump|PushSite|QRVA|RealDownload|Reaper|Recorder|ReGet|replacer|RepoMonkey|Robozilla|Rover|RPT-HTTPClient|Rsync|Scooter|SearchExpress|searchhippo|searchterms\.it|Second\ Street\ Research|Seeker|Shai|Siphon|sitecheck|sitecheck.internetseer.com|SiteSnagger|SlySearch|SmartDownload|snagger|Snake|SpaceBison|Spegla|SpiderBot|sproose|SqWorm|Stripper|Sucker|SuperBot|SuperHTTP|Surfbot|SurfWalker|Szukacz|tAkeOut|tarspider|Teleport\ Pro|Templeton|TencentTraveler|TrueRobot|TV33_Mercator|UIowaCrawler|UtilMind|URLSpiderPro|URL_Spider_Pro|Vacuum|vagabondo|vayala|visibilitygap|VoidEYE|vspider|Web\ Downloader|w3mir|Web\ Data\ Extractor|Web\ Image\ Collector|Web\ Sucker|Wweb|WebAuto|WebBandit|web\.by\.mail|Webclipping|webcollage|webcollector|WebCopier|webcraft@bea|webdevil|webdownloader|Webdup|WebEMailExtrac|WebFetch|WebGo\ IS|WebHook|Webinator|WebLeacher|WEBMASTERS|WebMiner|WebMirror|webmole|WebReaper|WebSauger|Website|Website\ eXtractor|Website\ Quester|WebSnake|Webster|WebStripper|websucker|webvac|webwalk|webweasel|WebWhacker|WebZIP|Wget|Whacker|whizbang|WhosTalking|Widow|WinHTTP|WISEbot|WWWOFFLE|x-Tractor|^Xaldon\ WebSpider|WUMPUS|Xenu|XGET|Yeti|zermelo|Zeus.*Webster|Zeus [NC] RewriteRule ^.* - [F,L] # Bots starting with Web RewriteCond %{HTTP_USER_AGENT} ^web(zip|emaile|enhancer|fetch|go.?is|auto|bandit|clip|copier|master|reaper|sauger|site.?quester|whack) [NC,OR] # Anywhere in UA -- Greedy REGEX RewriteCond %{HTTP_USER_AGENT} ^.*(craftbot|download|extract|stripper|sucker|ninja|clshttp|webspider|leacher|collector|grabber|webpictures).*$ [NC] RewriteRule ^.* - [F,L]
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO Last edited by Webnauts; 08-29-2008 at 03:45 PM. |
|
|||
|
Good info. Thanks for sharing.
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
||||
|
I just stumbled your sig by the way.
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO |
|
|||
|
Thanks. I will return the favor.
__________________
I use Country IP Blocks as added security for my networks and servers. |
|
|||
|
We have been affected by this issue as well and are doing our best to try and fix the problem. We are running Windows servers so we do not have Apache or the ability to use .htaccess files.
Can you give us some direction on a solution that might work for us? If we were going to have to load Apache and use the .htaccess fix would we then have to run all of our web traffic through Apache then? What exactly does the .htaccess file do? Thanks in advance for any help. |
|
||||
|
Quote:
We had an error in the above code, which made the htaccess file visible to web browsers. Replace this part: Code:
<FilesMatch "(.*)"> Order Allow,Deny Allow from all Deny from env=bad_bot </FilesMatch> with this: Code:
<Limit GET POST> Order Allow,Deny Allow from all Deny from env=bad_bot </Limit>
__________________
"Being an expert isn't telling other people what you know. It's understanding what questions to ask, and flexibly applying your knowledge to the specific situation at hand. Being an expert means providing sensible, highly contextual direction." Jeff Atwood SEO Workers - Search Engine Optimization Consulting Company | SEO Analysis Tool | Webnauts Net SEO Last edited by Webnauts; 09-03-2008 at 06:00 PM. Reason: URGENT ISSUE!!!! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL injection Attack | incrediblehelp | Database Discussion Forum | 4 | 05-30-2008 11:52 AM |
| JavaScript Injection Attack Infects 'Hundreds of Thousands' of Websites | Tech Manager | Internet Security Discussion Forum | 0 | 04-24-2008 12:05 PM |
| Can We Declare Automated Comment & Link Posting To Be Bad? | WPW_Feedbot | Search Engine Optimization Forum | 0 | 09-19-2005 12:30 PM |
| Cutting through Microsoft?s latest FUD attack | WPW_Feedbot | IT Discussion Forum | 0 | 01-31-2005 01:03 PM |
| www.cast-lighting.com | steve-parrott | Submit Your Site For Review | 4 | 08-11-2004 12:54 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |