security - How will a server become vulnerable with chmod 777? -


i read articles saying along lines of "chmod 777 bad!"

i wondering:

how become vulnerable when execute 'chmod 777' on file?

what real world example of can reproduce?

it allows filesystem content viewed and/or modified anyone: assuming attacker has general system access common on shared hosting platforms .. more "hardened" others start. here small incomplete list of possible attack vectors:

  1. "your safe code" overwritten "their malicious code" runs within same web-server context .. steal passwords/trojan, expose db, delete content, etc. is, someone else's code can run under your security context.
  2. content (e.g. "script source") can possibly viewed outside of web-server (or owner) context. have "secure" password connect db? well, not anymore...
  3. if content protected permissions (e.g. web-server couldn't access before), the web-server might able access/list sensitive information... not if didn't mean share it. different web-server configurations treat "listings" differently, can expose more desired.

in above assume "group" include web-server principal , there web-server (and/or shared hosting) involved can used primary attack vector and/or security vulnerability. however, , stress again: the list above not complete.

while not "guaranteed safety", using specific permissions can mitigate vulnerabilities / exposure.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -