Call: +44 (0)7759 277220 Call
Forum

Welcome, Guest. Please Login.
Nov 23rd, 2024, 12:25am
News: Welcome to Pete Finnigan's Oracle security forum
Home | Help | Search | Members | Login
   Pete Finnigan's Oracle Security Forum
   Oracle Security
   Oracle Security
(Moderator: Pete Finnigan)
   Remote Database Access
« Previous topic | Next topic »
Pages: 1  Reply | Notify of replies | Send Topic | Print
   Author  Topic: Remote Database Access  (Read 3220 times)
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Remote Database Access
« on: Aug 5th, 2008, 3:08pm »
Quote | Modify

What is the best/most secure way to provide access to a dev oracle 10g (or 11g) database over the internet (https?) without the use of vpn or any other special client software?  Being able to remotely access a central development database (hosted on Win Server 2003 or 2008) would be very useful.
 
I'm thinking if I could somehow 1) encrypt all traffic, 2) open the database up to the world, 3) and only allow incoming traffic by (explicitly stated) IPs via a firewall, I might be able to meet my requirements.  This might be crazy or might not be possible.  Interested in your thoughts.
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Remote Database Access
« Reply #1 on: Aug 8th, 2008, 7:39am »
Quote | Modify

What sort of access are you planning ?
 
There's some information here on SSL for the Oracle HTTP server and embedded PL/SQL Gateway (I think the latter is supported for 11g only).
http://wiki.shellprompt.net/bin/view/Apex/SecurityCategory
 
SSL (as I understand it) is about the client knowing that the server is who it says it is, rather than the other way round, so I'm not sure it helps you much (and I think it is part of the Advanced Security option).
 
Also think about the risk of the development database 'talking' to a production database (eg DB Link).
 
If you want to work from home, VPN / SSH seems a better approach.
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Remote Database Access
« Reply #2 on: Aug 9th, 2008, 6:02pm »
Quote | Modify

Hi,
 
When you say https, do you mean at the TNS level or at a web application level. You say development database but don' t clarify whether you mean to do development or to access the application/database. can you clarify as the level of risk is obviously quite different.
 
cheers
 
Pete
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Remote Database Access
« Reply #3 on: Aug 12th, 2008, 2:07pm »
Quote | Modify

Thanks for the response.  I believe TNS - basically dont want traffic (un,pw) transmitted in clear text.  Application developers need to be able to connect to and read from the central development database (config and other tables) for remote application debugging.  Ideally there would be no configuration of the client workstations, w. the exception of hosts file.  VPN would be great but it's not really an option right now.
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Remote Database Access
« Reply #4 on: Aug 13th, 2008, 4:10am »
Quote | Modify

"I believe TNS - basically dont want traffic (un,pw) transmitted in clear text. "
It isn't anyway (packet sniffing on a LAN is as much a risk as it is on the internet)
 
Here's a brief posting by David Litchfield outlining the authentication mechanism.  
http://www.freelists.org/archives/dbsec/11-2006/msg00005.html
and it covered here too
http://soonerorlater.hu/index.khtml?article_id=512
 
There's some information on securing the connection here:
 www.dbspecialists.com/files/presentations/net8_security.html - (broken link)
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Remote Database Access
« Reply #5 on: Aug 13th, 2008, 8:00am »
Quote | Modify

Hi,
 
Thanks for your confirmation. I am still unclear whether you mean remote as in really remote; i.e. your developers are at different sites or more importantly the access would be over the internet? - **I think** you mean that the developers are in your buildings and on your network.  
 
To encrypt TNS you have a number of options:
 
1) pay for Oracle ASO and use TCPS instead of TNS, i.e. set up a listener with SSL for TNS, you can only do this with ASO though.
 
2) USe a free solution. You can tunnel TNS over SSH, there are a couple of papers listed on my white papers page http://www.petefinnigan.com/orasec.htm - just search in the page for "ssh" with CRTL-F, you wll find the papers, one shows how to tunnel sqlplus through ssh.  
 
3) Again use ssh; using something like putty and allow developers access to the server and connect to sqlplus that way. I would not go this route unless absolutely necessary as you are increasing the attack surface by allowing more people acess to the server.
 
In terms of a solution that only depends on config, this is not easily possible. All the above require some form of install and config.  
 
Finally the password is never transmitted in clear text to the database server anyway. The username is but not the password (for TNS i mean)
 
cheers
 
Pete
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Remote Database Access
« Reply #6 on: Aug 13th, 2008, 2:55pm »
Quote | Modify

Thanks again for the replies.  I'll check into those referenced papers/links.  Clearly I have much to learn about this topic.
 
To clear up the ambiguity: 1) remote means over the internet and 2) in terms of access required, it is for the testing/debugging of the database driven application being developed in C# that connects to the database. There really is no need to connect remotely with sqlplus.
 
I'll consider all of the options that you presented.  Thanks.
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pete Finnigan
PeteFinnigan.com Administrator
*****




Oracle Security is easier if you design for it

   
View Profile | WWW | Email

Gender: male
Posts: 309
Re: Remote Database Access
« Reply #7 on: Aug 14th, 2008, 8:05am »
Quote | Modify

Hi,
 
Thanks for your reply. It sounds like your application supplies a database username and password to a database connection in c#. Therefore it is just as feasible that any of the developers can also use SQL*Plus by extracting the password (is this why you don't want the username/password to be exposed?). There are various techniques to get the password when an application has it stored for use.
 
Also more worringly, if the application does indeed make a connection from each client to the database, this means that the database listener has to be exposed and open to the internet. This then means that your database must be hardended to prevent attack.  
 
Is there a business reason that the developers need to access the database directly over the internet. It is always a better design to allow http / https access over the internet and then inside the firewall from the application server allow access to the database.  
 
cheers
 
Pete
IP Logged

Pete Finnigan (email:pete@petefinnigan.com)
Oracle Security Web site: http://www.petefinnigan.com
Forum: http://www.petefinnigan.com/forum/yabb/YaBB.cgi
Oracle security blog: http://www.petefinnigan.com/weblog/entries/index.html
Pages: 1  Reply | Notify of replies | Send Topic | Print

« Previous topic | Next topic »

Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board
  • PFCLScan PFCLScan

    Simply connect PFCLScan to your Oracle database and it will automatically discover the security issues that could make your Oracle database vulnerable to attack and to the potential loss of your data.

  • PFCL Obfuscate PFCLObfuscate

    PFCLObfuscate is the only tool available that can automatically add license controls to your PL/SQL code. PFCLObfuscate protects your Intellectual Property invested in your PL/SQL database code.

  • PFCLCode PFCLCode

    PFCLCode is a tool to allow you to analyse your PL/SQL code for many different types of security issues. PFCLCode gives you a detailed review and reports and includes a powerful colour syntax highlighting code editor

  • PFCLForensics PFCLForensics

    PFCLForensics is the only tool available to allow you to do a detailed live response of a breached Oracle database and to then go on and do a detailed forensic analysis of the data gathered.

  • Products We resell PFCLReselling

    PeteFinnigan.com Limited has partnered with a small number of relevant companies to resell their products where they enhance or compliment what we do

  • PFCLATK PFCLATK

    PFCLATK is a toolkit that allows detailed pre-defined policy driven audit trails for your Oracle database. The toolkit also provides for a centralised audit trail and centralised activity reporting

  • PFCLCookie PFCLCookie

    PFCLCookie is a useful tool to use to audit your websites for tracking cookies. Scan websites in a natural way using powerful browser driven scanner

  • PFCL Training PFCLTraining

    PFCLTraining is a set of expert training classes for you, aimed at teaching how to audit your own Oracle database, design audit trails, secure code in PL/SQL and secure and lock down your Oracle database.

  • PFCL Services PFCLServices

    Choose PFCLServices to add PeteFinnigan.com Ltd to your team for your Oracle Security needs. We are experts in performing detailed security audits, data security design work and policy creation

  • PFCLConsulting PFCLConsulting

    Choose PFCLConsulting to ask PeteFinnigan.com Limited to set up and use our products on your behalf

  • PFCLCustom PFCLCustom

    All of our software products can be customised at a number of levels. Choose this to see how our products can be part of your products and services

  • PFCLCloud PFCLCloud

    Private cloud, public cloud, hybrid cloud or no cloud. Learn how all of our services, trainings and products will work in the cloud

  • PFCLUserRights PFCLUserRights

    PFCLUserRights allows you to create a very detailed view of database users rights. The focus of the reports is to allow you to decide what privileges and accounts to keep and which to remove.

  • PFCLSTK PFCLSTK

    PFCLSTK is a toolkit application that allows you to provide database security easily to an existing database. PFCLSTK is a policy driven toolkit of PL/SQL that creates your security

  • PFCLSFTK PFCLSFTK

    PFCLSFTK is a toolkit that solves the problem of securing third party applications written in PL/SQL. It does this by creating a thin layer between the application and database and this traps SQL Injection attempts. This is a static firewall.

  • PFCLSEO PFCLSEO

    PFCLSEO is a web scanner based on the PFCLScan technology so that a user can easily scan a website for technical SEO issues