Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 11 of 11

This is a discussion on Is this code a forum attack of some sort? in the Shared & Semi-Dedicated forum
I've been checking my logs during the past day or so and I've been recieving hundreds upon hundreds of bad URLs, I've included a few ...

  1. #1
    Rawr! kiwi li's Avatar
    Join Date
    Sep 2002
    Posts
    471

    Is this code a forum attack of some sort?

    I've been checking my logs during the past day or so and I've been recieving hundreds upon hundreds of bad URLs, I've included a few below, but I don't know what these people are trying to accomplish...

    66.118.187.66 - - [27/Sep/2005:01:39:02 -0500] "GET /lom/viewtopic.php?p=195&highlight=%2527%252E system(chr(112)%252Echr(101)%252Echr(114 )%252Echr(108)%252Echr(32)%252Echr(45)%2 52Echr(101)%252Echr(32)%252Echr(34)%252E chr(112)%252Echr(114)%252Echr(105)%252Ec hr(110)%252Echr(116)%252Echr(32)%252Echr (113)%252Echr(40)%252Echr(106)%252Echr(8 3)%252Echr(86)%252Echr(111)%252Echr(119) %252Echr(77)%252Echr(115)%252Echr(100)%2 52Echr(41)%252Echr(34))%252E%2527 HTTP/1.0" 404 665 "-" "Mozilla/4.0"

    edited to save post space, deleted the other IP address logs
    Last edited by kiwi li; 09-28-2005 at 10:38 PM.
    If you see me posting, there must be bad news. ^^

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Someone is trying to hack your board with the highlight hole...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    Rawr! kiwi li's Avatar
    Join Date
    Sep 2002
    Posts
    471
    I guess I'm lucky I took the board offline then? ^^ Sounds evil... ^^

    I'm guessing what they're doing is automated though because I see hundreds of different IPs and they're all hitting me with the same code at once? ^^

    And since the board doesn't exist, (that board stopped existing since Feburary) they're eating my 404.jpg file... maybe I should take it off for the time being... ^^;;

    Thank you for your help again! ^_^
    Last edited by kiwi li; 09-27-2005 at 01:15 AM.
    If you see me posting, there must be bad news. ^^

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Hrm...

    Well, I'm just guessing. I haven't got much to go by...

    Are these worms eating up your bandwidth by any chance?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Just for the heck of it, I looked at my logs, and I haven't been bombed by worms in a long time. You might consider putting this in your .htaccess file -- it's what I use...

    Code:
    #Check for Santy Worms, et cetera, and redirect to a PHANTOM site.
    #Variant-1 May cause problems with CRON jobs set from cPanel.
    RewriteCond %{HTTP_USER_AGENT} ^LWP                     [NC,OR]
    #Variant-2 No reported problems.
    RewriteCond %{REQUEST_URI} ^visualcoders                [NC,OR]
    #Variant-3 No reported problems.
    RewriteCond %{QUERY_STRING} rush=([^&]+)                [NC,OR]
    #Variant-4 May cause problems with cPanel updates, et cetera.
    RewriteCond %{QUERY_STRING} ^(.*)wget(.*)               [NC,OR]
    #variant-5 Redirect all inner http:// requests.
    RewriteCond %{QUERY_STRING} ^(.*)http://(.*)            [NC,OR]
    #variant-6 Redirect all inner http requests even if encoded.
    RewriteCond %{QUERY_STRING} ^(.*)http%3A%2F%2F(.*)      [NC,OR]
    #variant-7 Prevent access from santy webworm a-e.
    RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527       [NC,OR]
    #variant-8 Prevent pre php 4.3.10 bug.
    RewriteCond %{HTTP_COOKIE}% s:(.*):\%22test1\%22\%3b    [NC]
    RewriteRule ^.*$ http://www.goawayanddontcomeback.com   [L]
    Evidently it's still effective!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    That "highlight hole" was a problem with phpBB. It was fixed with version 2.0.15 if I recall correctly. Just don't put any phpBB of a version older than that out and you haven't got anything to worry about, it will simply blow over.

    That is: unless you are really, really thight on bandwith: with a lot of (blocking) effort you could save a bit.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  7. #7
    Rawr! kiwi li's Avatar
    Join Date
    Sep 2002
    Posts
    471
    Well, I had a 404 error jpg I was showing that was 120KBs and I think I roughly got about 200-300 bad hits on there, so I think they would at max have eaten 360MBs? I don't really mind since I never reached my maximum limit anyways... it's only 25GB used this month and it's almost the new month already. ^^

    Yah... I don't think I'll be using phpBB, or any other messageboard for that matter since I don't really have the time to update it... ^^ Too many exams... >.<

    Thank you for the code, I'll go try it out! ^_^
    If you see me posting, there must be bad news. ^^

  8. #8
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by kiwi li
    I don't really mind since I never reached my maximum limit anyways... it's only 25GB used this month and it's almost the new month already. ^^
    Yeah, but I'm sure JagPC, et al, would appreciate if 'we' stopped malicious attacks against 'our' web sites. They can't catch them all...

    I know a guy that got hammered by worms to a tune of 300MB an hour. If enough sites are being attacked here, it WILL effect the whole network, you know?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  9. #9
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,438
    Quote Originally Posted by kiwi li
    Well, I had a 404 error jpg I was showing that was 120KBs and I think I roughly got about 200-300 bad hits on there, so I think they would at max have eaten 360MBs?
    In the grand scheme, this amount of bandwidth is not too extreme. However, it is still inefficient and wasteful. Surely the image can be reduced in size, the 404 HTML reformatted, or a simplified response file presented. After all it is just a "File Not Found" error and is more of a housecleaning issue than a front page facade.

    Amazingly, Vin is right here too.

  10. #10
    Rawr! kiwi li's Avatar
    Join Date
    Sep 2002
    Posts
    471
    That's because the 404 error is the only thing on my website... ^^;;;;;;;;;;;;;;;;;; It's like giving away free money to someone... ^^;;;;

    And, I have already changed the 404 image to 20kbs even before I started this thread!

    I don't know how to stop malicious attacks... ^^ That's why I have to post here or write that help ticket to jaguarpc.... although I think that they would probably catch it as well... ^^ I think...

    Hmm... maybe I should make my 404 error larger.... maybe a mosaic format... ¬.¬

    300 MBs an hour is alot... ^^ Is there a worm that downloads everything or something like that?
    Last edited by kiwi li; 09-28-2005 at 11:17 PM.
    If you see me posting, there must be bad news. ^^

  11. #11
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,438
    Quote Originally Posted by kiwi li
    And, I have already changed the 404 image to 20kbs even before I started this thread!
    That's a good start.

    I don't know how to stop malicious attacks... ^^ That's why I have to post here or write that help ticket to jaguarpc.
    Keep providing info and eventually we'll stumble upon a reasonable solution. One thing you could try temporarily until a good block can be applied is to define a response in the top level .htaccess directive context file:
    Code:
    ErrorDocument 404 "<html><body><p>404 - File Not Found<br />\
    (Please visit <a href=http://www.kiwili.com/>www.kiwili.com</a>.)</p></body></html>
    This will provide the appropriate 404 response using a small amount of both user and machine readable text as well as provide an acceptable response page for search engines. You can modify that text string to suit your needs. Copy those two lines and place them in the .htaccess file (exactly as written at first during testing). Next, visit your own site at http://www.kiwili.com/this_is_a_test.html (substituting your proper domain name, of course) and watch what happens. Simple. Edit as desired but terminate all lines except the last quoted line with the backslash "\" character. It should look like this in your browser:
    Code:
    404 - File Not Found
    (Please visit www.kiwili.com.)
    Is there a worm that downloads everything or something like that?
    A worm could be revisiting your site repeatedly and, failing to find the desired file, searches again and again. Or it could be a script searching for vulnerabilities. I occassionally get those and report them to the ISP or webhost.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •