20150517
V2EX  ›  问与答

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

  •  
  •   20150517 · Dec 6, 2014 · 3344 views
    This topic created in 4262 days ago, the information mentioned may be changed or developed.
    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被过滤,试过/**/什么没用....

    找点思路
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   845 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 21:29 · PVG 05:29 · LAX 14:29 · JFK 17:29
    ♥ Do have faith in what you're doing.