CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions: Re: [btran007] perl connect oracle db without credentials: Edit Log



Zhris
Enthusiast

Jul 1, 2014, 5:00 AM


Views: 27587
Re: [btran007] perl connect oracle db without credentials

Hi,

It is stored out of what I would describe as "web root". In recent projects I design the file system into two parent directories, private and public, public being where the domain points at.

I understand your concern is injection attacks, specifically command based. My advice would be to perform vigourous validation of all user supplied parameters, especially those that are used in system calls. Prevent an attack in the first place. As you are probably already aware, if there is a vulnerability in this area, you have plenty of other things to worry about than just your database data, although your database data is likely the most critical. As far as I can invisage, no matter what you do, an attacker would be able to work their way to your credentials one way or another, even if stored "outside of the web server".

To be OTT, perhaps you could also not make it obvious what and where the database credentials are, encrypt them, store them amoungst other data, don't directly refer to them under the database namespace, don't directly access them when connecting etc. Make it as difficult as desired for the attacker to reach, you could even include traps that notify you of suspicious behaviour and give you time to act.

But if an attacker has the ability to run their own / modify code, then they could easily connect to the database in the manner you do / dump parts of the database they require.

Regards,

Chris


(This post was edited by Zhris on Jul 1, 2014, 5:18 AM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:02 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:05 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:11 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:13 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:13 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:14 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:16 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:17 AM
Post edited by Zhris (Enthusiast) on Jul 1, 2014, 5:18 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives