Website Hacked!

Discussion in 'Site & Server Administration' started by velocity834, Jul 17, 2006.

  1. #1
    velocity834, Jul 17, 2006 IP
  2. D3Si

    D3Si Peon

    Messages:
    569
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If your website was HTML then it's hard to hack using browser.. so check ur PC may be you have trojan in pc or may be your server was hacked from some where else...
     
    D3Si, Jul 17, 2006 IP
  3. Darkhodge

    Darkhodge Well-Known Member

    Messages:
    2,111
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    185
    #3
    Itll be the php upload feature you have on your site. One of my sites got hacked 3 times using the upload feature. They seem to upload this file manager php file and then get access to your files via that.

    First time I found out I was so shocked that it was that easy to hack sites if not properly secure...

    Doesnt really matter for me tho - my site that got hacked is pretty crappy :)
     
    Darkhodge, Jul 17, 2006 IP
  4. velocity834

    velocity834 Peon

    Messages:
    443
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    velocity834, Jul 17, 2006 IP
  5. Darkhodge

    Darkhodge Well-Known Member

    Messages:
    2,111
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    185
    #5
    Thats exactly the same program that the guy used to hack my site.

    Seriously I have no idea why they even bother - that's such low level crap!!! It requires no skill!!!! Not to mention the fact its fkin annoying...

    Good you got your site fixed :)
     
    Darkhodge, Jul 17, 2006 IP
  6. velocity834

    velocity834 Peon

    Messages:
    443
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    hehe i just checkjed stats i acutally was getting good traffic :-/ :(
     
    velocity834, Jul 17, 2006 IP
  7. The Webmaster

    The Webmaster IdeasOfOne

    Messages:
    9,516
    Likes Received:
    718
    Best Answers:
    0
    Trophy Points:
    360
    #7
    You run a image upload site.
    there is a php file manager program which provides access to your site directory.
    someone tried to do it with one of my image Hosting site.

    Check your upload folder if permissions are set to 777 change it 666 so they cant execute the file in that folder.

    if it works then okay, other wise you have prevent script execution in that folder by your server settings.
     
    The Webmaster, Jul 17, 2006 IP
  8. craigy24

    craigy24 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    sucks dude. Good job you kept a backup.
     
    craigy24, Jul 17, 2006 IP
  9. velocity834

    velocity834 Peon

    Messages:
    443
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #9
    How do i change the permissions?
     
    velocity834, Jul 18, 2006 IP
  10. The Webmaster

    The Webmaster IdeasOfOne

    Messages:
    9,516
    Likes Received:
    718
    Best Answers:
    0
    Trophy Points:
    360
    #10
    use chmod command..
     
    The Webmaster, Jul 18, 2006 IP
  11. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #11
    Getting hacked can be a GOOD thing!

    Besides teaching you about a flaw in your site it also brings backlinks and traffic.

    I had a tiny linkbait site I put up with a funny flash movie that got hacked. I caught it pretty quick because I was working on it. So when the hackers submitted it to all the defaced sites they normally do to show off I fixed it and got all that traffic. Because the flash movie was funny they linked to it and told their friends :)
     
    GeorgeB., Jul 18, 2006 IP
  12. Mrblogs

    Mrblogs Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    To make sure that your Apache config (if you use apache)

    has something like:

    <Directory /path/to/upload/folder>
    AllowOverride none
    AddType text/plain .html .htm .shtml
    php_admin_flag engine off
    </Directory>
     
    Mrblogs, Jul 18, 2006 IP
  13. DrMalloc

    DrMalloc Peon

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #13
    There are still enough security holes in that site for another break-in to happen, i'd suggest grabbing a book like "Essential PHP Security" and getting up to scratch.

    1) None of your content is protected
    http://www.theimagebase.com/userimages/

    2) No checking is done on quite a few POST/GET variables, here is the most harmless example:
    http://www.theimagebase.com/viewer.php?id=anythinggoeshereevenhtmlorjavascript
     
    DrMalloc, Jul 19, 2006 IP
  14. wormy

    wormy Active Member

    Messages:
    1,112
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #14

    Uhmmm I think that would only apply if he had global variables turned on through httpd.conf or .htaccess don't you think? Otherwise PHP doesnt parse ?= variable assignements through url input.
     
    wormy, Jul 19, 2006 IP
  15. DrMalloc

    DrMalloc Peon

    Messages:
    130
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #15
    It's more of the possibility of XSS issues than register_globals.
     
    DrMalloc, Jul 20, 2006 IP