Re: urlscan configuration for specific cgi apps

From: BB (Bernard_at_3exp.com)
Date: 12/13/02


From: "BB" <Bernard_at_3exp.com>
Date: Fri, 13 Dec 2002 20:39:04 +0800


No... urlscan is a 'must' have tool if you ask me.

I re-read again Thomas's solution. It's to configure
only allow the 'mycgi.exe' to be executable.
but this I believe with NO urlscan inplace....

if urlscan is installed, the request will be blocked.

And I believe you should have urlscan installed.
take out the '.exe' in 'deny extension', then use
the thomas suggestion to futher secure it....

Rgds.

"billemery" <emery_bill@hotmail.com> wrote in message
news:030701c2a1e4$74a7bac0$8df82ecf@TK2MSFTNGXA02...
> thanks very much, i knew there had to be a way, in other
> words you are saying to not use urlscan.
> thats no problem, i wish i could use urlscan though. slick
> utility.
>
>
> >-----Original Message-----
> >But won't this be blocked by Urlscan again.
> >if .exe is in [Deny Extension] ??
> >
> >Rgds.
> >
> >"Thomas Deml [Msft]" <thomad@online.microsoft.com> wrote
> in message
> >news:eT1hFwaoCHA.2220@TK2MSFTNGP09...
> >> No, not really.
> >>
> >> there is one way to do this though:
> >>
> >> Here is a little trick that allows only a particular
> executable to run
> >> without having to give executable rights to an entire
> virtual directory.
> >> Unfortunately this is not supported via the UI. Here is
> how you do it via
> >> script:
> >> Lets suppose you have a virtual directory called
> cgivdir underneath the
> >root
> >> node of your site. Within this vdir is the CGI program
> you have to run
> >> called mycgi.exe. First you should remove all rights
> from the cgivdir
> >> directory. You do not even have to allow read access or
> allow anonymous
> >> request:
> >>
> >> adsutil.vbs set w3svc/1/root/cgivdir/AccessFlags 0
> >>
> >> adsutil.vbs set w3svc/1/root/cgivdir/AuthFlags 0
> >>
> >> Then you simply create a metadata node for mycgi.exe
> underneath the
> >cgivdir
> >> virtual directory.
> >>
> >> adsutil.vbs create w3svc/1/root/cgivdir/mycgi.exe
> IIsWebFile
> >>
> >> As a last step you only allow the necessary access
> rights to mycgi.exe
> >>
> >> adsutil.vbs set
> w3svc/1/root/cgivdir/mycgi.exe/AccessExecute true
> >>
> >> adsutil.vbs set
> w3svc/1/root/cgivdir/mycgi.exe/AuthAnonymous true
> >>
> >> Now nothing but mycgi.exe can be executed in the
> cgivdir virtual
> >directory.
> >>
> >> If you have no other virtual directory with execute
> access you basically
> >> achieved the goal. To find out if other directories
> have Execute rights
> >try:
> >>
> >> c:\Inetpub\AdminScripts\adsutil.vbs find AccessExecute
> >>
> >> or go through every site and virtual directory in your
> site and look if
> >you
> >> find "Execute permissions" set to "Scripts and
> Executables".
> >>
> >> Hope this helps.
> >> --
> >> Thomas Deml
> >> Lead Program Manager
> >> Internet Information Services
> >> Microsoft Corp.
> >>
> >>
> >>
> >>
> >> "billemery" <emery_bill@hotmail.com> wrote in message
> >> news:09eb01c2a16d$f32bb3f0$8af82ecf@TK2MSFTNGXA03...
> >> > is it possible to configure urlscan so that a
> paticular
> >> > cgi program say prog.exe is allowed but no
> other .exe ?
> >> >
> >> > ie http://www.webpage.com/cgi-bin/prog.exe ?
> parm1....&parmn
> >> > would be allowed.
> >> > the command line could have & in it also separating
> the
> >> > parms.
> >> >
> >> >
> >> >
> >>
> >>
> >
> >.
> >



Relevant Pages

  • Re: urlscan configuration for specific cgi apps
    ... i wish i could use urlscan though. ... >> Lets suppose you have a virtual directory called ... cgivdir underneath the ... >> If you have no other virtual directory with execute ...
    (microsoft.public.inetserver.iis.security)
  • Re: problem with urlscan filter
    ... If you think the problem is caused by URLScan, you can solve the problem by ... reading the URLScan Log file to find out the reason that it rejected the ... No one needs to guess why a URL is rejected by URLScan -- its log file tells ... to execute something in a vdir that doesn't have execution permissions. ...
    (microsoft.public.inetserver.iis.security)
  • Re: urlscan configuration for specific cgi apps
    ... you can absolutely use URLScan and you should... ... URLSCAN.ini file so that it does not block .EXE files. ... >>> Lets suppose you have a virtual directory called ... >>> If you have no other virtual directory with execute ...
    (microsoft.public.inetserver.iis.security)
  • Re: Cant Download .exe but no URLScan.ini
    ... If you are sure that there's no urlscan. ... set the 'execute permission' as 'script and executable' ... > URLScan.ini from the lockdown tool. ... > there is no URLScan.ini on my server, and I do not think URLScan has ...
    (microsoft.public.inetserver.iis.security)
  • Re: Problem after iislockdown tool and urlscan
    ... to requested URL if it e.g. contains .idq extension... ... How to configure the URLScan Tool ... > 403.1 Forbidden: Execute Access Forbidden ... > executable program from a directory that does not allow programs to be ...
    (microsoft.public.inetserver.iis.security)