LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > disable CGI

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2012, 06:30 PM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
Default disable CGI

Hello,

i cand find DisableCgiOverride
"DisableCgiOverride On" in Apache Style Configurations (Admin Console -> Configurations -> Server -> General).

i have add

<IfModule litespeed>
DisableCgiOverride On
</IfModule>
to httpd.conf file
but perl script is working yet

<Directory "/">
Options -ExecCGI -FollowSymLinks -Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
AllowOverride AuthConfig Indexes Limit FileInfo Options=IncludesNOEXEC,Indexes,Includes,MultiViews ,SymLinksIfOwnerMatch,FollowSymLinks
</Directory>


perl script work with
perl.tttt

and they add this for .httacess
Options FollowSymLinks MultiViews Indexes ExecCGI

AddType application/x-httpd-cgi .back

AddHandler cgi-script .tttt
AddHandler cgi-script .tttt

how i can disable it
Reply With Quote
  #2  
Old 05-24-2012, 08:11 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
Options FollowSymLinks MultiViews Indexes ExecCGI
try: modify it to
Options FollowSymLinks MultiViews Indexes -ExecCGI
Reply With Quote
  #3  
Old 05-25-2012, 04:46 AM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
not fixed !!!
Reply With Quote
  #4  
Old 05-25-2012, 09:39 AM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
is there any way to stop this
Reply With Quote
  #5  
Old 05-25-2012, 08:39 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
not clear about your environment.
Quote:
and they add this for .httacess
what's the relationship between "they" and you.

just for an suggestion: you can set /usr/bin/perl 's permission to disable the ability of user running perl cgi script.
Reply With Quote
  #6  
Old 05-26-2012, 04:29 AM
bt5 bt5 is offline
Member
 
Join Date: Oct 2011
Posts: 21
they are a hacker, if they run cgi and can break server security
by change chmod perl alo they can upload new perl file
and they change line 1 of perl script to new perl file
#!/home/user/public_html/perl
like this
Reply With Quote
  #7  
Old 05-26-2012, 11:16 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
now a bit more clear about your environment.

one more question: is this account belonging to this hacker ? so he can edit .htaccess file. yes, if someone can edit .htaccess, it's very difficult to prevent him to do anything bad further.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:59 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.