Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The main problem is to been able to upload a script, an aspx page, in this directory with the photo files, and runs it.</p> <p>Here is one case: <a href="https://stackoverflow.com/questions/4288362/ive-been-hacked-evil-aspx-file-uploaded-called-aspxspy-theyre-still-trying">I&#39;ve been hacked. Evil aspx file uploaded called AspxSpy. They&#39;re still trying. Help me trap them‼</a></p> <p>The solution to that is to add this extra <code>web.config</code> file on the directories that allow to upload files and not permit to run any aspx page. Also double check to allow only extensions that you permit and not allow to change that on the file name, if they have the opportunity to make rename.</p> <pre><code>&lt;configuration&gt; &lt;system.web&gt; &lt;authorization&gt; &lt;deny users="*" /&gt; &lt;/authorization&gt; &lt;/system.web&gt; &lt;/configuration&gt; </code></pre> <p>Also on the directories that you allow to upload files, do not permit to run any other script like simple asp, or php or exe, or anything.</p> <h2>general speaking</h2> <p>All your pages have permissions to run and manipulate many things on the server. What you give now is the ability of <code>write</code> on some directories, also by using some aspx page. The asp.net now have one more extra permission to write files there, on the photo folder. Also note here, that you asp.net page have this control, not the user. What you do there with your code can write on this directories, so must be carefuller there to double check where you write and not allow any other directories, not allow the user to manipulate the directory that can be written to.</p> <p>So this is the weak link. To been able to upload more script that can take control of the server, at least the part that can be access by the asp.net user of this pool.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload