Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Hackers are .... $&%#$*$!!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hackers are .... $&%#$*$!!

 Post Reply Post Reply Page  12>
Author
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Topic: Hackers are .... $&%#$*$!!
    Posted: 28 March 2006 at 8:50pm
I hate hackers!

Last night someone uploaded a asp file through a online demo of my portal that replaced all default.asp files with "hacked by" in it.

Now this morning I have to spend all freaking day repairing the damage.


Note to self: Setting "Administrator" in the IIS in the Authentication is a very bad idea! I need to learn more about IIS... im just a coder, not a server administrator Cry

Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2006 at 8:51am
why leave your cheese on the table and complain about mice!! LOL


Edited by the boss - 29 March 2006 at 10:32am

Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2006 at 12:41pm
Sorry to hear that Maddog,

A few times these {insert rude word here} have got me and it does make you wonder what the point is? I mean are they gonna gain notoritey or anything of any use from hacking my little East London Skateboard site???? I think not....
Handyman man?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2006 at 1:15pm
Security can never be overlooked, I've spent months on it and it's a pain.

A few more pointers to prevent this type of thing:-

1. Only allow users to brows your site through the IUSR account
2. Set the IUSR account to have read only permissions on all public folders inside your web site except the upload directory (this would prevent this hack)
3. Alter your upload application to not allow unsafe file types (.asp, .aspx, .php, etc)

For the last point I did this in version 7.97 of Web Wiz Forums as I found that if a hacker gained access to the forums admin section they could change the allowed file uploads to allow ASP files to be uploaded, then upload an ASP file to the server through the upload tools to hack the entire site.

If you checkout the 'admin/upload_configure.asp' file in web wiz forums 7.97 you will see a whole list of un-safe file types that you should not allow as upload types.

I spent the best part of a weekend coming up with the list from both online sources and a list of un-safe file types that Microsoft issued.

If you're developing applications for the web madDog it is well worth doing allot of research on both server hacking, XSS hacking, SQL injections, etc. as it is the only way to make sure that your applications that you develop are truly hacker proof.


Edited by -boRg- - 29 March 2006 at 1:17pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2006 at 1:18pm
By the way here is the list of unsafe file extensions for IIS, I've placed it into an array:-

'ISAPI and CGI web page extensions (can be used to hack site)
    saryBadFileTypes(0) = "asax"
    saryBadFileTypes(1) = "ascx"
    saryBadFileTypes(2) = "ashx"
    saryBadFileTypes(3) = "asmx"
    saryBadFileTypes(4) = "aspx"
    saryBadFileTypes(5) = "asp"
    saryBadFileTypes(6) = "asa"
    saryBadFileTypes(7) = "asr"
    saryBadFileTypes(8) = "axd"
    saryBadFileTypes(9) = "cdx"
    saryBadFileTypes(10) = "cer"
    saryBadFileTypes(11) = "cgi"
    saryBadFileTypes(12) = "class"
    saryBadFileTypes(13) = "config"
    saryBadFileTypes(14) = "com"
    saryBadFileTypes(15) = "cs"
    saryBadFileTypes(16) = "csproj"
    saryBadFileTypes(17) = "cnf"
    saryBadFileTypes(18) = "dll"
    saryBadFileTypes(19) = "edml"
    saryBadFileTypes(20) = "exe"
    saryBadFileTypes(21) = "idc"
    saryBadFileTypes(22) = "inc"
    saryBadFileTypes(23) = "isp"
    saryBadFileTypes(24) = "licx"
    saryBadFileTypes(25) = "php3"
    saryBadFileTypes(26) = "php4"
    saryBadFileTypes(27) = "php5"
    saryBadFileTypes(28) = "php"
    saryBadFileTypes(29) = "phtml"
    saryBadFileTypes(30) = "pl"
    saryBadFileTypes(31) = "rem"
    saryBadFileTypes(32) = "resources"
    saryBadFileTypes(33) = "resx"
    saryBadFileTypes(34) = "shtm"
    saryBadFileTypes(35) = "shtml"
    saryBadFileTypes(36) = "soap"
    saryBadFileTypes(37) = "stm"
    saryBadFileTypes(38) = "vsdisco"
    saryBadFileTypes(39) = "vbe"
    saryBadFileTypes(40) = "vbs"
    saryBadFileTypes(41) = "vbx"
    saryBadFileTypes(42) = "vb"
    saryBadFileTypes(43) = "webinfo"
    saryBadFileTypes(44) = "cfm"
    saryBadFileTypes(45) = "ssi"
    saryBadFileTypes(46) = "swf"
    saryBadFileTypes(47) = "vbs"
    saryBadFileTypes(48) = "tpl"
    saryBadFileTypes(49) = "cfc"
    saryBadFileTypes(50) = "jst"
    saryBadFileTypes(51) = "jsp"
    saryBadFileTypes(52) = "jse"
    saryBadFileTypes(53) = "jsf"
    saryBadFileTypes(54) = "js"
    saryBadFileTypes(55) = "java"
    saryBadFileTypes(56) = "wml"


This list may need to be altered if any unusual extensions are support on the server.


Edited by -boRg- - 29 March 2006 at 1:20pm
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2006 at 1:23pm
Originally posted by -boRg- -boRg- wrote:


This list may need to be altered if any unusual extensions are support on the server.


...and they're not unusual LOL
Handyman man?
Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2006 at 1:46pm
well how about blocking every extension execpt the on explictly in the list.. and then add only jpg files.. also add size limit bcuz some clever ass can inject code in an image file and execute it..

hackers do the hacking for the sake of gaining momentum in their social circles.. it doesnt matter what site they have hacked as long as they have got a change to use their nimblest skills

Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2006 at 5:39pm
Wouldn't it be easier to list the allowed filetypes as supposed to dissalowed?  Theres only a few allowed, Jpg, jpeg, gif, png, bmp etc etc.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.