Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member inetbizo's Avatar
    Join Date
    Mar 2008
    Location
    New Smyrna Beach, FL US
    Posts
    55
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb -NoExecCGI and images

    We're trying to prevent hackers from uploading perl scripts into apache writable folders in our ecommerce packages. Adding -NoExecCGI disables view of images on the rendered page. What would be a good solution to prevent XSS attacks using perl from a post to folder where images are stored?
    StrikeHawk eCommerce Inc. * osCommerce Community Support Specializes in CRE Loaded open source e-commerce cart.

  2. #2
    Member ModServ's Avatar
    Join Date
    Oct 2006
    Location
    Egypt
    Posts
    228
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: -NoExecCGI and images

    This error because of 500 Internal Server Error because of there isn't something named "-NoExecCGI" it's named "-ExecCGI"

    To allow it then you have to put "+ExecCGI" to disable "-ExecCGI"

    You can put these in the main httpd.conf replacing the current in the " Directory "/" "

    PHP Code:
    <Directory "/">
        
    Options -ExecCGI -FollowSymLinks -Includes IncludesNOEXEC Indexes -MultiViews SymLinksIfOwnerMatch
        AllowOverride AuthConfig Indexes Limit FileInfo Options
    =IncludesNOEXEC,Indexes,Includes,MultiViews,SymLinksIfOwnerMatch
    </Directory
    Also you can simply put a rule into Mod Security to prevent working with *.pl...

    ModServ for Hosting & Web Services Solutions
    URL: http://www.modserv.com.eg

Similar Threads & Tags
Similar threads

  1. Hosting images.
    By ArthurCatigbe in forum New User Questions
    Replies: 3
    Last Post: 04-24-2009, 03:06 PM
  2. Images in Images folder not showing on website!!
    By Jordy26 in forum New User Questions
    Replies: 2
    Last Post: 05-15-2007, 06:35 AM
  3. Apache not loading images/cssApache not loading images/css
    By mangohead in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-06-2006, 09:08 PM
  4. Images
    By IdioticCreation in forum New User Questions
    Replies: 1
    Last Post: 04-18-2006, 06:51 PM
  5. Need help with images
    By ccandt in forum New User Questions
    Replies: 4
    Last Post: 10-30-2005, 09:51 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube