V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
20150517
V2EX  ›  问与答

mysql 注入点在这种 update 情况下是不是只能改当前表,没法 update 其他表或 select 啦

  •  
  •   20150517 · 2014-12-06 19:32:09 +08:00 · 2953 次点击
    这是一个创建于 3580 天前的主题,其中的信息可能已经有所发展或是发生改变。
    php上找到一个注入点,没过滤',但过滤了select (大小写都不行),例子如下
    update members
    set column1='{inject here}' where uid='12345'
    所以我现在加个', column='def语句就能改成如下
    update members
    set column1='abc', column2='def' where uid='12345'

    我现在能改这个表里的任意列,但我如果要改其他表或者改where的条件,可能吗?
    另外我试了
    update members
    set column1='abc', column1=(select xxx from xxx), column2='1' where uid='12345'

    想读数据出来,但是好像select被过滤,试过/**/什么没用....

    找点思路
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5578 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 02:33 · PVG 10:33 · LAX 19:33 · JFK 22:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.