Forum Moderators: coopster & phranque

Message Too Old, No Replies

Weird error, any ideas what could be happening?

cgi-bin/: attempt to invoke directory as script

         

explorador

4:15 pm on Feb 7, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi, it's been a while since I asked a Perl question.

My framework and CMS runs on PERL, and all the scripts are located on specific folders, not a single one on the cgi-bin. Yet, I'm seeing a lot of errors on the server logs, something is attempting to invoke the cgi-bin directory as a script.

This is new, I believe something they changed on the server is affecting my websites, perhaps something trying to scrap or browse the folders?

Starting today, I removed the empty cgi-bin folders from all my websites.

Something new I'm seeing, they installed NginX cache, I just turned it off, but the errors keep appearing.

Any help will be great.

explorador

1:41 am on Feb 11, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank you.
I have htaccess file blocking, and several of my websites don't have cgi-bin folders, just a couple, and I already deleted those too. The error keeps appearing, that's weird.

phranque

8:52 am on Feb 11, 2025 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



are the errors appearing in the access log or the error log?

explorador

2:25 pm on Feb 12, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



are the errors appearing in the access log or the error log?
It's on the error log.

I think I have an idea of what's going on.

Recently (feb 01) started experiencing Internal Server Error issues. At first, I thought the admin moved my files to another server lacking some Perl modules) but that wasn't the case, it took me a while to understand it was something else because the Cpanel changed. Turns out they moved my files probably compressing and decompressing, and there was an issue with the end of line on the scripts (a common problem with Perl scripts, if not careful, I mean, them). So I fixed the problem by just saving again the main scripts.

The Internal Server Error messages were gone right away.

But while at the error log page, I could see the same messages about the cgi-bin folder, that seemed strange to me. Only a few websites have that folder and it's not accessible, the rest have no cgi-folder, and yet, the error appeared on both. Seems to me something or someone is browsing the folder structure. There is a new option on my Cpanel showing NginX caché, I turned it off, I have no idea how it works, my websites have their own cache function, so, I don't need it, it's off.

Yet, the errors still appeared.
Today, these cgi-bin errors are almost gone, but now I get the same thing looking for php.ini

I believe someone, or something, is searching for vulnerable files on my file structure. I'm honestly not concerned as I have tested this extensively, but that seems like evidence to me. Good luck searching php.ini, all my framework and cms runs on Perl, the sites are up, no hacking of any kind.