黑客攻擊IIS的主要發(fā)式演示及安全防范措施_第1頁
黑客攻擊IIS的主要發(fā)式演示及安全防范措施_第2頁
黑客攻擊IIS的主要發(fā)式演示及安全防范措施_第3頁
黑客攻擊IIS的主要發(fā)式演示及安全防范措施_第4頁
黑客攻擊IIS的主要發(fā)式演示及安全防范措施_第5頁
已閱讀5頁,還剩25頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、黑客攻擊IIS的主要發(fā)式演示及安全防范措施 SEC 307日程:怎樣黑的: The Internet Information Server (IIS) Unicode exploit為什么有Code Red 和 Nimda? 微軟的應(yīng)對措施:STPPNew security features in IIS 6.0怎樣加固 IIS?網(wǎng)絡(luò)管理員程序開發(fā)員How It WorksCanonicalizationA roseis a roseis a roseis a roseGertrude SteinOr is it? c:myprogramsmydirtest.asp:$DATA.mydirte

2、st.aspc:myprogramsmydirtest.asp.c:myprogramsmydirtest.aspc:myprog1mydirtest.asp 演示:Unicode ExploitWindows 2000 是一個安全的平臺嗎?是的! YES!Security is built-inWinner of eWeek OpenHack challengeCustomers who survived Code Red and NimdaCurrent on service packs and security patches“Locked down” systems so that v

3、ulnerabilities were not exposedWithstand attacks even without applying patchesDid both for “defense in depth”Microsofts commitmentSecurity Response CenterSTPP Windows Security Push7000 engineersDedicated Security PersonalSTPP And IISStrategic Technology Protection ProgramSustained campaign for Windo

4、ws NT 4.0 and Windows 2000Get secureFree Windows Security Resource Toolkit CDHotfix RollupIIS Lockdown HFNetCHK URLScan Support1-866-PCSafety, free security issue support Stay secureBundle all security fixes since most recent Service Pack Windows 2000 Service Pack (SP3)Windows Update Corporate Editi

5、onAuto update Scheduled install demoIIS Lockdown ToolURLSCAN重要提示Install new IIS Security Rollup PackageSRPURLSCANIIS 6.0 安全方面的新設(shè)計(jì):Reduced attack surfaceIIS is not installed by defaultServer Lockdown: Static files onlySecure defaultsCode securityBuffer overflow checksAutomated in the Windows build en

6、vironmentVC+ compiler supported (/Gs)Revised canonicalizationRemoved old legacy codeLow privilege accountsSecurity through IsolationGreat patch management storyNew authentication and authorization schemes實(shí)用措施 Best PracticesRun IIS Lockdown wizard and URLScanLock down your network with IPSecDo not us

7、e FAT! Have your content on a separate partitionUse authenticationDisable unneeded system servicesStay InformedSecurity: A way of lifeCheck for new security hot fixesSubscribe to the Security notification service technet/treeview/default.asp?url=/technet/security/bulletin/notify.aspUse HFCHECK /HFNE

8、TCHK technet/security/tools/tools/hfnetchk.aspQuery Windows Update Stay InformedSecurity: A way of lifeRemain informed, vigilant, and educated!AuditEventlogMonitorIIS LogsMake a plan for what needs to be done whenA new security bulletin is releasedHackedDo backupsUse tools to detect intrusions URLSC

9、AN如果不幸被黑了Remove infected machines from the NetForensicsTake an image; Find out how the hacker did itCheck with vendors for new vulnerabilitiesCheck log filesExamine connected computersInstall clean image after low level formatChange passwordsUpdate Installation GuidesDocument what you have learnedMa

10、ke an incident response plan編程方面可能出現(xiàn)的的安全問題假設(shè)說有的輸入都有惡意!Three main threats Cross-site scriptingBuffer overflowsSQL injectionClientHow Cross-Site Scripting WorksBAD.COMTRUSTED.COMhyperlinkError: Invalid URL + requested linkMsgBox “hello” demoCross-Site Scripting解決方法Filter input parameters for special c

11、haracters % ; ) ( & + - Encode output based on input parametersURLEncodeHTMLEncodeSet Data LimitsUse Input Validation Controls in ASP.NETBuffer OverrunsAnd again: All input is bad!Buffer OverflowsHow it worksLocal variablesCalling CodeProgram StackReturn AddressJMP ESPLocal variablesCalling CodeProg

12、ram StackReturn AddressMalicious InputNew Return Addresspush ebp push ecx mov ebp,esp sub esp,54h xor ecx,ecxmov byte ptr ebp-14h,h mov byte ptr ebp-13h,a mov byte ptr ebp-12h,c mov byte ptr ebp-11h,k mov byte ptr ebp-10h,e mov byte ptr ebp-0Fh,d mov byte ptr ebp-0Eh,1 mov byte ptr ebp-0Dh,. mov byt

13、e ptr ebp-0Ch,e demoBuffer Overflow解決方法strcpystrcatmemcpysprintfmemcpymemsetgetssscanfreadstrstrstrrevValidate all inputsSee “Writing Secure Code” by Michael Howard and David LeBlancDouble-check or dont use unsafe functionsSQL InjectionAnd again: All input is bad!if (isPasswordOK(Request.form(name),

14、Request.form(pwd) Response.write(Authenticated!); / Do stuff else Response.write(Access Denied); function isPasswordOK(strName, strPwd) var fAllowLogon = false; var oConn = new ActiveXObject(ADODB.Connection); var strConnection=Data Source=c:authauth.mdb; oConn.Open(strConnection); var strSQL = SELE

15、CT count(*) FROM client WHERE + name= + strName + + and pwd= + strPwd + ; var oRS = new ActiveXObject(ADODB.RecordSet); oRS.Open(strSQL,oConn); fAllowLogon = (oRS(0).Value 0) ? true : false; oRS.Close(); delete oRS; oConn.Close(); delete oConn; return fAllowLogon; 壞蛋Username: b or 1 = 1Password: b o

16、r 1 = 1SELECT count(*) FROM client WHERE name=b or 1=1 and pwd=b or 1=1為什么危險?好人Username: mikeyPassword: &y-)4Hi=Qw8SELECT count(*) FROM client WHERE name=mikey and pwd=&y-)4Hi=Qw8 demoSQL Injection解決方法Tell the attacker nothing!Determine what is valid inputBeware of quotesCheck SQL return valuesDisab

17、le parent paths in ASPEnableParentPaths property工具和檢查清單Security Toolkit onlineLockdown ToolHFNETCHKURLSCANWhitepapersChecklistsNSA Security Recommendations guides/w2k-14.pdf總結(jié)Microsoft is committed to Windows 2000 and Windows NT 4.0Internet Information Server (IIS) 5.0 when managed, is a secure Platform that withstands real world attacksWe will provide the tools and features to make managing a secure computing environment, as easy as possibleIIS 6.0 with a

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論