Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A friend of mine claimed to have retrieved the source code to a proxy CGI script that I run off of my webserver. I have strong doubts about his abilities to get anything except for the HTML source of the page. Do any of you know if it is possible to get the source of a perl CGI script when it is hosted off of a webserver? The Permissions are chmod 755 (-rwxr-xr-x).
I don't think so. CGI is server side scripting and only outputs html to the browser. If he had seen your CGI script, either you have some problem with config of your server or he had broken into your computer, in that case you have some security issue. Otherwise a CGI script as PHP script can't be seen by someone browsing the net.
Thats pretty much what I figured. I checked the server logs, and there weren't any suspicious login attempts - actually NO login attempts whatsoever, so I'm assuming he did not get in that way - I also use port forwarding on my server (just port 80) so there wasnt a way to SSH into the machine. Thanks for the help!
You probably don't have much to worry about here, your friend is probably just trying to brag to you. As far as I know, there aren't any source leak exploits in the current version of apache (assuming that's tahw you use).
Yeah he probably is. I asked him today if what he "found" worked, and it doesnt, apparently. I think he just got the html source and thinks that that's the entire cgi script's source - which it clearly isn't. Also, he probably thought it would go to the IP address listed in the source. That, however, is impossible because its a non-routable address. (10.0.0.x) Oh well. Just wanted to make sure that I did not have any major security leaks! Again, thanks very much for the help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.