Three Tier Oracle Security in London ~ Paul M. Wright

(nix, oracle, java, www, cloud ) intersect (safety, security, reliability, integrity)

Three Tier Oracle Security in London ~ Paul M. Wright RSS Feed

Securing Java in Oracle Update and escalating to SYSDBA

Updated Securing Java in Oracle paper here.

David’s work has drawn attention.
What the reports miss is that this definitely affects as well in a big way.

Oracle have provided some guidance in the absence of a patch:

- revoke execute on "oracle/aurora/util/Wrapper" from public;
- grant execute on sys.dbms_jvm_exp_perms to IMP_FULL_DATABASE;
- grant execute on sys.dbms_jvm_exp_perms to EXP_FULL_DATABASE;
- revoke execute on sys.dbms_jvm_exp_perms from PUBLIC;

Of course the problem is knowing the effect that these privilege changes will have before making the changes. Most organisations either take the risk of the change breaking functionality or decide to stay as they are. What is needed is a low risk method of evaluating the effect of the change before it is made..That is exactly the subject of my updated paper Securing Java in Oracle paper. This paper describes using Database Application Monitoring Systems to profile application behaviour prior to applying the fix so the effect can be predicted, thus lowering risk.

Different subject… I have been interested in the difference between DBA account privileges and SYSDBA account privileges for a while. There are a few listed here
One of the reasons it interests me is that any DBA can gain SYSDBA quite trivially. Not by direct grant and not by shifting the SYSDBA bit in memory, but by simply changing the SYS password via ALTER USER SYS IDENTIFIED BY NEWPASSWORD; which can be done by any DBA user via ALTER USER system privilege. This makes any DBA escalation a SYSDBA escalation so why increasingly differentiate their privileges?
There is a safeguard to ALTERing SYS’s password but it can be bypassed by using the GRANT method of changing a user’s password as Alex states

Additionally by using the Java API in Oracle it is possible to call the OS as the oracle OS user, thus commands such as orapwd can be invoked which allow the sys password to be changed to a given value! .. more detail on this at a later date…but suffice it to say that Securing Java in Oracle should be given high priority due to it’s highly privileged access to the OS from low privileged DB accounts.

I will be presenting on the subject of Securing Java in Oracle both via the SDLC and using DAMS at the ISSD conference in May See you there.


Leave a Reply

You must be logged in to post a comment.