某某五專存在Post SQL 注入 - HITCON ZeroDay

Vulnerability Detail Report

Vulnerability Overview

  • ZDID: ZD-2017-00099
  • Vendor: 敏惠醫護管理專科學校-新生探索平台
  • Title: 某某五專存在Post SQL 注入
  • Introduction: POST SQL Injection

處理狀態

目前狀態

公開
Last Update : 2017/04/06
  • 新提交
  • 已審核
  • 已通報
  • 未回報修補狀況
  • 未複測
  • 公開

處理歷程

  • 2017/02/04 14:19:00 : 新提交 (由 aaa 更新此狀態)
  • 2017/02/05 00:07:49 : 審核完成 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2017/02/08 18:28:31 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2017/02/08 18:28:31 : 修補中 (由 HITCON ZeroDay 服務團隊 更新此狀態)
  • 2017/04/06 03:00:07 : 公開 (由 HITCON ZeroDay 平台自動更新)

詳細資料

  • ZDID:ZD-2017-00099
  • 通報者:honc (aaa)
  • 風險:高
  • 類型:資料庫注入攻擊 (SQL Injection)

參考資料

攻擊者可利用該漏洞取得後端資料庫權限及完整資料(包含大量使用者個資或敏感性資料),同時也有機會對資料進行破壞或修改。

漏洞說明: OWASP - SQL Injection
https://www.owasp.org/index.php/SQL_Injection

漏洞說明: OWASP - Top 10 - 2017 A1 - Injection
https://www.owasp.org/index.php/Top_10-2017_A1-Injection

漏洞說明: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html

防護方式: OWASP - SQL Injection Prevention Cheat Sheet
https://www.owasp.org/index.php/SQL_Injection_Prevention_Cheat_Sheet
(本欄位資訊由系統根據漏洞類別自動產生,做為漏洞參考資料。)

相關網址

Test List:http://school.mhchcm.edu.tw/minhwei_freshman/minhwei_freshman.asp

敘述

相關Server 訊息:

web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0
back-end DBMS operating system: Windows 2003 Service Pack 2
back-end DBMS: Microsoft SQL Server 2005
banner:

Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86)
Nov 24 2008 13:01:59
Copyright (c) 1988-2005 Microsoft Corporation
Standard Edition on Windows NT 5.2 (Build 3790: Service Pack 2)

▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂

Post 封包訊息:

POST /minhwei_freshman/minhwei_freshman.asp HTTP/1.1
Host: school.mhchcm.edu.tw
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://school.mhchcm.edu.tw/minhwei_freshman/minhwei_freshman.asp
Cookie: ASPSESSIONIDSSQBRRDC=MGCHPAKCKLLDLHCALNJOHHPM
X-Forwarded-For: 8.8.8.8
Connection: close
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
Content-Length: 16

freshman_id=r123

使用這組截到的post request 使用tools 測試注入跑

擷圖

留言討論

;