Forum Moderators: open

Message Too Old, No Replies

CGI-Bin asp files and security

asp files are in cgi-bin directory sending db search

         

mikeytj

7:59 pm on Sep 22, 2005 (gmt 0)

10+ Year Member



Hi all,

I have an app on an asp file that searches a db based on the directoy.asp?a=#*$!x argument. It works fine with all that I need. My concern is that with my provider all asp files need to be in the cgi-bin directory and the resulting request ends up sending it to the domain name/cgi-bin/directoy.asp?a=xxxx . I don't know if there are any security issues with this or not whether it's in the cgi-bin or not. Are there any security issues with just the app of a filename.asp?a=xxx method of retrieving data?

Thanks for any and all comments, suggestions and or resources.

Mike

mrMister

9:52 am on Sep 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you sure that this is a Microsoft server that you are using? Very few Microsoft hosts enforce this kind of restraint because Microsoft deals with security for script files differently to how it deals with security for CGI applications.

If you are not using a Microsoft IIS server, your really need to be asking this question in the correct forum as my answer may not apply to other types of web server.

There's no security problems with restricting your ASP files to a cgi-bin directory, howevr on a Microsoft Server there's no great benefit in it either.

There's nothing magical about the name "cgi-bin", it just happens to be a common name for a folder that allows executable permissions. It's perfectly possible to use another name for this or even allow every directory in your web site to allow executable permissions (although this may be a security hazard)

If you don't like having the cgi-bin in your URLs you could ask your host if they support ISAPI rewrite, which would allow you to seperate you URLs from your underlying directory structure.

mikeytj

2:37 pm on Sep 23, 2005 (gmt 0)

10+ Year Member



Thanks - it is an IIS server. I just didn't know anything about the techniques of the ner do wells out here that if that directory showed .....etc. It is read only and the only thing I can see is the?a=#*$! which if it's not there in the db it's going to an error page anyhow.

Thanks just trying to be safe with a limited amount of experience on the subject