Kayako logo
Technical Chat From server configurations to local area networking - the technical discussion forum.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
gvard Offline
New Member
 
Posts: 18
Join Date: Jan 2007
Location: Athens/GREECE
Securing writeable (CHMOD 777) folders - 18-07-2007, 09:01 PM

Greetings from Greece,

I just received a note from zone-h.org that my eSupport installation was hacked. To be more exact, someone placed an index.php in the /files directory of eSupport.

The above directory (and cache directory) are CHMOD'ed 777, is there any way to prevent something like this from happening?


Sincerely,

George Vardikos
HyperHosting Internet Services
http://www.hyperhosting.gr/
   
Reply With Quote
  (#2) Old
supportskins Online
Senior Member
 
supportskins's Avatar
 
Posts: 3,681
Join Date: Aug 2006
Location: Mumbai, India
18-07-2007, 09:23 PM

This is something new! I suggest you edit the post and remove the "way" your helpdesk was hacked and contact Kayako Support for more feedback.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
bear Offline
Community Moderator
 
Posts: 686
Join Date: Jan 2005
18-07-2007, 11:34 PM

He didn't include the way, he included the result.
Common knowledge about directory permissions in Kayako, I should think.
   
Reply With Quote
  (#4) Old
gvard Offline
New Member
 
Posts: 18
Join Date: Jan 2007
Location: Athens/GREECE
18-07-2007, 11:39 PM

Yes, I just included the result. Unfortunately those directories need to be in 777. What do you guys use to secure them from remote scripts?


Sincerely,

George Vardikos
HyperHosting Internet Services
http://www.hyperhosting.gr/
   
Reply With Quote
  (#5) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 345
Join Date: Feb 2007
Location: Lyon, France
19-07-2007, 06:26 AM

why is the /files/ used... are you using flat storage instead of database storage?
If yes, that's where you can see the difference in security issues. Database files aren't real files.


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#6) Old
craigbrass Offline
Senior Member
 
Posts: 5,552
Join Date: Jun 2005
Location: Cumbria, UK
19-07-2007, 08:27 AM

It would seem more likely that they have got in through a 3rd party piece of software but contact Kayako and post your ticket ID here so it can be chased ASAP.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#7) Old
gvard Offline
New Member
 
Posts: 18
Join Date: Jan 2007
Location: Athens/GREECE
19-07-2007, 11:42 AM

Quote:
Originally Posted by Sheep View Post
why is the /files/ used... are you using flat storage instead of database storage?
If yes, that's where you can see the difference in security issues. Database files aren't real files.

I'm using database storage, so that's not the issue. I believe the directory gets created one way or another.


Sincerely,

George Vardikos
HyperHosting Internet Services
http://www.hyperhosting.gr/
   
Reply With Quote
  (#8) Old
gvard Offline
New Member
 
Posts: 18
Join Date: Jan 2007
Location: Athens/GREECE
19-07-2007, 11:45 AM

Quote:
Originally Posted by craigbrass View Post
It would seem more likely that they have got in through a 3rd party piece of software but contact Kayako and post your ticket ID here so it can be chased ASAP.
They got through another application from another hosting account. I don't say that esupport has any security issues, I'm just asking how do you protect 777 directories from nobody owned files which can be uploaded through a remote script?


Sincerely,

George Vardikos
HyperHosting Internet Services
http://www.hyperhosting.gr/
   
Reply With Quote
  (#9) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 345
Join Date: Feb 2007
Location: Lyon, France
19-07-2007, 11:59 AM

On such folders: Chmod should always be 660, if 770 is needed then do it but **1 should never be.
Chown should be set to an "apache" account, that way you could get a chmod 600. That's more secure


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#10) Old
Mohit Sharma Offline
Staff
 
Mohit Sharma's Avatar
 
Posts: 39
Join Date: Aug 2006
19-07-2007, 12:17 PM

Hi,

It is not much of a security problem. Chmod 777 only gives read/write/execute access to other users on the system. Depending on apache configuration, you're probably going to be running as the "nobody" user. If a script is exploited, then that exploit is being carried out by the nobody user.And without privileged access to the system a simple user cannot do any harm to the system . If he gets privileged access it means there is some vulnerability in the operating system. While it is a good idea to chmod from 777 to 776, to prevent nobody from even executing the files. Like in SupportSuite we do not require execute permissions with "Files" and "Cache" directory.

Systems that run phpsuexec instead of mod_php then scripts aren't being executed by nobody. They are executed by the website's account on the server. So, chmod 777 won't change anything.

Regards,


Mohit Sharma (mohit.sharma ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#11) Old
DarkMindZ Offline
New Member
 
Posts: 1
Join Date: Dec 2007
here you go - 21-12-2007, 12:27 AM

http://www.darkmindz.com/forum/prote...folders-num481
   
Reply With Quote
Reply

Tags
777, chmod, folders, securing, writeable

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46