Results 1 to 10 of 10
  1. #1
    Join Date
    Apr 2007
    Posts
    48
    Plugin Contributions
    0

    Default Warning: I am able to write to the configuration file

    I have chmoded the file with FTP and with the control panel on the web server and i even called my web hosting company and they have confirmed that the file is read only

    then why do I keep getting these errors:

    http://www.canadascrubs.com/catalog/

    Warning: I am able to write to the configuration file: /services/webpages/c/a/canadascrubs.com/public/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance.

    Thank you in advance

  2. #2
    Join Date
    Apr 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Warning: I am able to write to the configuration file

    Yes, it is two hours later and the file is still read only, so i have disabled the warning in the config file.... But i would like to know if anybody has found a solution to this yet?

    Thanks

  3. #3
    Join Date
    Apr 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Warning: I am able to write to the configuration file

    Is this proof that the file is read only?

    http://www.canadascrubs.com/catalog/.../configure.php

    Forbidden

    You don't have permission to access /catalog/includes/configure.php on this server.


    Then I don't have to worry and I can leave the WARNING turned off?

    or regardless, because the shopping cart tells me that it can write to the config file, that I really have something to worry about..... ?????

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Warning: I am able to write to the configuration file

    You can leave the warning off if you like.

    It's there to let you know that PHP is able to write to the file. That means that if a hacker running a PHP script on your webserver were to target that file, they could write changes to it, effectively shutting down your site.

    It's entirely up to you.

    If your host is certain that you're not at risk, then take their word for it, and expect their help if you get hacked for some reason.

    And, no, getting "forbidden" while trying to access the file from your browser is no proof of security.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Apr 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Warning: I am able to write to the configuration file

    OK, I re-enabled the warning in the /public/catalog/includes/init_includes/init_header.php

    this is what I get:

    Warning: I am able to write to the configuration file: /services/webpages/c/a/canadascrubs.com/public/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance.

    when I go to the file manager and check the file this is what I get:



    also when I check by FTP, this is what i get:



    so what is right, the file or the script, do i solve this by turning off the warning, or am I really missing something?

    please help

    thanks

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Warning: I am able to write to the configuration file

    FTP and your File Manager are telling you that FTP and File Manager see them as read-only.

    Zen Cart is telling you that PHP sees the file as writable.


    This suggests that a PHP script could gain access and change the file.

    I'm not going to tell you that that's safe or not. You can take that up with your hosting company and decide whether you want to ignore the warning or not.

    Regardless of your choice, be sure to keep regular backups.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Apr 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Warning: I am able to write to the configuration file

    But why is it when I have the warning turned on and I follow this advice, everything is fine (my web server is an apache web server on linux and I am hosting with Bell Canada):

    move the configure.php to /includes/configure/configure.php
    change the path in the /includes/application_top.php now pointing to the configure.php location as above
    set read only permission to the /includes/configure folder

    This is from the windows server forum, but it solves my problem...

    http://www.zen-cart.com/forum/showthread.php?t=58188

    Larry Hyman

  8. #8
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Warning: I am able to write to the configuration file

    Did you try using permissions of 400?

    Vger

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Warning: I am able to write to the configuration file

    Larry,

    Moving the file to another folder may or may not protect it further.
    If that's what's required for your hosting arrangement in order to ensure safety and prevent the file from being vulnerable, then that's a solution for your setup.

    Naturally, since Zen Cart doesn't know about the new folder, it's not going to be checking permissions on that folder or the file in it. The absence of a warning message in this case should not be an indicator of safety/security.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Apr 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: Warning: I am able to write to the configuration file

    I suspect this setup works because the folder containing the configuration file (by itself) is now read only.... anyways, I'm glad I was able to find a solution and that works for me.

    Thanks for all the help everybody

 

 

Similar Threads

  1. Warning: I am able to write to the configuration file:
    By 4lex in forum Basic Configuration
    Replies: 11
    Last Post: 6 Aug 2011, 03:59 AM
  2. Warning: I am able to write to the configuration file:
    By dpet102 in forum General Questions
    Replies: 9
    Last Post: 29 Jun 2009, 06:49 PM
  3. Warning: I am able to write to the configuration file...
    By Ozewolf in forum General Questions
    Replies: 9
    Last Post: 15 Jan 2009, 01:23 PM
  4. Warning: I am able to write to the configuration file:
    By rikkidegraz in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 9 Jul 2008, 06:11 PM
  5. Warning: I am able to write to the configuration File
    By rlantigua in forum Installing on a Windows Server
    Replies: 23
    Last Post: 28 Oct 2006, 12:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR