Results 1 to 4 of 4
Threaded View
-
26th Aug 2011, 04:39 PM #1
Common perl exploit in shared hosts.
Have you disabled cgi for your users?
But you can still execute perl scripts.
Are you amazed?
I am not.
This is a common .htaccess exploit
Have fun with this:
.htaccess
Code:Options +ExecCGI <FilesMatch \.pl$> SetHandler cgi-script </FilesMatch>
Code:#!c:/perl/bin/perl.exe ## ## printenv -- demo CGI program which just prints its environment ## print "Content-type: text/plain; charset=iso-8859-1\n\n"; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s|"|\\"|g; print "${var}=\"${val}\"\n"; }
Code:#!/usr/bin/perl ## ## printenv -- demo CGI program which just prints its environment ## print "Content-type: text/plain; charset=iso-8859-1\n\n"; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s|"|\\"|g; print "${var}=\"${val}\"\n"; }
Code:Options Indexes FollowSymLinks AllowOverride All Options=IncludesNOEXEC Options=Indexes Options=FollowSymLinks
Thanks to CVE-2009-1195 for the idea.
For details about the configurations see:
https://httpd.apache.org/docs/curren...#allowoverride
https://httpd.apache.org/docs/curren...e.html#options
Be aware this thread was edited with better configuration to avoid 500 errors with legitimate .htaccess edits.
If you face any errors with a certain .htaccess that you think being legitimate, reply here. Thanks.NewEraCracker Reviewed by NewEraCracker on . Common perl exploit in shared hosts. Have you disabled cgi for your users? But you can still execute perl scripts. Are you amazed? I am not. This is a common .htaccess exploit Have fun with this: .htaccess Rating: 5Trusted: Dom, l0calh0st, 0ccul7, robert420
Find all threads started by NewEraCracker
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
0-day WHCMS exploit
By shadow.prx in forum General DiscussionReplies: 3Last Post: 1st Jun 2012, 01:21 AM -
[Selling] [Exploit] Hot Exclusive YouTube Exploit [New]
By Goob3r in forum Completed TransactionsReplies: 1Last Post: 24th Aug 2010, 04:21 PM -
[Shared] ZippyHosts.Com - Cheapest Europe Shared Hosts 1.99 - Monthly
By ZippyHosts in forum ArchiveReplies: 0Last Post: 1st Feb 2010, 08:16 PM -
[Shared] NEO Hosts - Shared - Reseller - Nulled - Warez - Adult
By hsn09 in forum ArchiveReplies: 0Last Post: 19th Apr 2009, 02:19 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...