security - Is it safe to give the Asp.Net user account modify permissions to the root of the website? -


if give asp.net user account (network service win 2003) modify rights root folder of public website can user send request server somehow modify .aspx files of website? risks of doing this?

short answer: don't it

long answer: still don't, here 1 scenario followed through might make think twice (there prob many many more):

  1. if have file-upload control anywhere on site, image uploads, , attacker manages compromise security (don't forget not mean breaking site - might hijack someone's session or manage guess/steal password) can upload malicious script (.aspx page). site has "modify" permissions can write file disk.

  2. i see tagged question .net, imagine upload .aspx page <script runat="server">...</script> reads contents of web.config file , displays them.

  3. did put database connection strings passwords in clear text in web.config file? cos' if did, imagine next step upload new .aspx file connects databases... can read databases, delete data, change data... don't need username/password because can use named connection strings, information useful attack haven't thought of here.

i think see scenario goes...


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -