Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

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

  1. #21
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Well with Windows its two seperate layers of security where as with Linux its just one.

    The main layer is the NTFS permissions which tell Windows what users/processes on the server itself can access a file/folder; but the public layer "outside world" is simply controlled by IIS (the webserver) in seperate configuration.

    This is why its safe and much easier for users with Windows web hosts permissions wise - IIS simply has the "read" permission, where as the NTFS permissions allow Full Control for your scripts to run; resulting in never needing to worry about or change permissions of any kind.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  2. #22
    Join Date
    May 2007
    Posts
    62
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Further to this thread, I wonder if anyone can help me.

    There are numerous config files in oscommerce which contain the database username and password.

    I tested the security by setting up an html link to the config file and then right clicking and downloading the file.

    It lets me do it - from there I can copy and paste the username and password of the SQL database.

    I believe this is why you need to use linux permissions, so only the server can access this file - it must be readable on the server side, but the read permissions should be closed to outside parties.

    1) Am i right? I'm certainly no expert
    2) If so - how can i fix it?
    3) is this just a weakness of oscommerce on windows servers?

  3. #23
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Thats not possible when PHP is running on your website, since its a .PHP file, PHP processes it and therefore will not display the PHP code (password variables).
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  4. #24
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 23 Times in 23 Posts

    Default

    another trick is to use .ini files, as IIS will just give a 404 error if you try and access them over http.
    Even better is to keep everything you can outside of the web root directory - I'm surprised more opensource softwares don't give this option.

  5. #25
    Join Date
    May 2007
    Posts
    62
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Rumbled!!!!

    I thought I had tried it but I obviously hadn't - I just tried it again and all I got was the HTML file - so there no security issue to speak of.

    Just password protect your admin folder and you'll be fine.

    r4gards

    Jon

    (try things before you say you have tried them )

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multi-website DNS configuration
    By TheBadger in forum General Technical Support
    Replies: 12
    Last Post: 18th May 2006, 04:50 PM
  2. Bird Flu Warning
    By PaulB in forum Jokes and Stories
    Replies: 1
    Last Post: 9th December 2005, 02:39 PM
  3. File/Folder synchronisation ...
    By RMPnet in forum General Technical Support
    Replies: 7
    Last Post: 4th November 2005, 10:08 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
  •