fortiweb 4.0

68
FortiWeb 4.0 April 2005 Jacob Chen

Upload: elton-bowman

Post on 15-Mar-2016

328 views

Category:

Documents


28 download

DESCRIPTION

FortiWeb 4.0. Jacob Chen. April 2005. 複雜的網頁應用軟體安全. 什麼是網頁應用軟體 ? 網頁應用軟體是公開,且能夠在網際網路上使用的應用軟體 經由標準的瀏覽器來存取,提供電子郵件、線上消費商店、拍賣網站、佈落格及其他所有功能。 主要應用在提供電子商務及商業應用工作的組織單位使用 網頁應用軟體通常以最有效率的方法提供資訊以供訪問者瀏覽。 可能會留下應用軟體的漏洞 潛在的資訊洩漏危機 攻擊者能夠以一些變形的資訊來企圖偷取信用卡資料及其他個人資料. Web server data center. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: FortiWeb 4.0

FortiWeb 4.0

April2005

Jacob Chen

Page 2: FortiWeb 4.0

複雜的網頁應用軟體安全 什麼是網頁應用軟體 ?

網頁應用軟體是公開,且能夠在網際網路上使用的應用軟體 經由標準的瀏覽器來存取,提供電子郵件、線上消費商店、拍賣網站、佈落格及其他所有功能。 主要應用在提供電子商務及商業應用工作的組織單位使用

網頁應用軟體通常以最有效率的方法提供資訊以供訪問者瀏覽。 可能會留下應用軟體的漏洞 潛在的資訊洩漏危機 攻擊者能夠以一些變形的資訊來企圖偷取信用卡資料及其他個人資料

Web server data center

2

Database Servers

Front End Web Servers

Data Center Perimeter

Page 3: FortiWeb 4.0

為什麼需要 Web Application Firewalls?隨時隨地都需要使用網頁應用軟體可是…

49% 的網路應用軟體包含高風險的漏洞,而大部份皆為自動的程式碼產生的 * 80%-96% 的軟體可以手動的被入侵 99% 的網頁應用軟體是未經過

PCI 組織的測試承認 大部份的網頁應用軟體的弱點是無法被防火牆發現的

• Cross-site scripting • SQL injection• Information Leakage• HTTP Response Splitting

面臨攻擊的商業行為 : 收益的損失– 300$ per stolen

record 沒有通過法規驗證的罰金 公司形象及品牌受損

3*Source – Web Application Security Consortium (WASC)

Page 4: FortiWeb 4.0

Payment Card Industry Security Standards Council• Formed December 2004 by top 5 credit card companies

• Aligned each company’s individual policies and released the PCI DSS

A standard that ensures merchants meet minimum levels of security when they store, process and transmit cardholder data

Merchants that process credit cards must comply with the new PCI standard

• In October 2008 version 1.2 was introduced Prevention of common coding vulnerabilities such as those defined

by OWASP

Code reviews or - Verify that a web-application firewall is in place in front of public-facing web applications to detect and prevent web-based attacks

• Compliance enhances reputation and lowers risk

• Non-compliance can result in fines and sanctions

• Fortinet is a part of the PCI Security Standard Council (oct 6th, 2009)

Page 5: FortiWeb 4.0

What is ‘Application Security’ ?

應用軟體的生命週期專注於 : ( 長期控制 )• 設計 -Design• 研發 -Development• 配置 -Deployment• 升級 -Upgrade• 維護 -Maintenance

應用軟體控制專注於 : ( 補償控制 )• 減低攻擊威脅 ( 技術及功能面 )• 網頁應用軟體安全策略的實行

Fortinet Confidential

5

Page 6: FortiWeb 4.0

只有 Web Application Firewalls 能夠完整辨視、偵測及阻斷攻擊 !

• 傳統的防火牆能夠偵測網路型攻擊• 監控 IP 及 Port; 有限的應用軟體辨視功能

• IPS 產品儘能夠監控已知的攻擊特徵• 特徵值能夠輕易的被重新編碼或阻斷,無法偵測 SSL 加密流量,無應用軟體辨別功能• 無法辨別使用者,高誤判率

6

• Network Access• (OSI Layer 1 – 3)

Protocols(OSI Layer 4 – 7)

Network Layer

Application Layer

Network Firewall

IPS and Deep Packet Inspection Firewalls

Web Application Firewall

FortiWeb

現有的資安解決方案已不夠完備

Page 7: FortiWeb 4.0

Web Application FirewallHardware overview

Page 8: FortiWeb 4.0

保護網頁應用程式不受攻擊維持網頁服務安全維持應用軟體的可用性

FortiWeb 網頁應用防火牆

Web Application 平台 Web Application Firewall – 保護網頁應用軟體並幫助客戶達成符合法規要求 XML Firewall – 預防及保護 XML 應用 Application Acceleration – 使用 Fortinet ASIC 科技加速應用程式運作功能

8

Page 9: FortiWeb 4.0

FortiWeb-1000B Hardware Information

• Hardware 4 x 10/100/1000 ports 2 USB ports 1 x 1TB SATA hard drive – For log archiving(2 x 1TB Optional) 1 RU height rack mount unit FortiModule (Ports 3 and 4) – integrated

CP6 ASIC

• Throughput 500 Mbps HTTP 22,000 New sessions/second

• ICSA Labs Certificate Web Application Firewall

Front

Back

FortiModule Ports 3 and 4 Onboard Ports 1 and 2

Page 10: FortiWeb 4.0

FortiModule – CP6 RJ45

• Hardware PCIe accelerator card (Ethernet ports 3 and 4) CP6 for accelerated SSL processing Onboard Flash storage also used to embed the system serial number and

digital certificates

Page 11: FortiWeb 4.0

FortiWeb-400B Hardware Information

• Throughput 100 Mbps HTTP 10,000 New sessions/second

• ICSA Labs Certificate Web Application Firewall

• Hardware 4 x 10/100/1000 ports 1 USB ports 500GB SATA hard drive 1 RU height rack mount unit Integrated CP6 ASIC Latency – Sub Milisecond

Page 12: FortiWeb 4.0

FortiWeb Product Line

Model Form Factor

HTTP Transactions /

secThroughput Storage Capacity

FortiWeb-400B1U

Rack mountable

10,000 100Mb/sec 0.5 TB Standard

FortiWeb-1000B1U

Rack mountable

22,000 500Mb/sec 1 TB Standard

12

New

12

Page 13: FortiWeb 4.0

13

FDS CANADA

FDS UNITED STATES

FDS UNITED KINGDOM

FDS FRANCE FDS JAPAN

FDS CHINA

FDS MALAYSIA

FortiGuard™ 資安訂閱服務確保客戶能夠得到完整 Fortinet 產品資安更新訂閱服務

Worldwide Presence 100% Fortinet Technology Automatic Updates

Intrusion Prevention

System (IPS)

AntiSpam (AS)Web

Filtering (WF)Antivirus (AV)

(Includes Anti-Spyware)FortiWeb Security

Update Service

Page 14: FortiWeb 4.0

What Customers Want

14

Page 15: FortiWeb 4.0

透通模式 - Transparent Inline bridge

容易配置 - 不需要更改原有整體網路架構,不需要更改 IP 配置,完全透明的配置。 支援完整的防禦功能 可選購 Bypass 單元。

反向代理伺服器模式 - Reverse Proxy

支援完整的內文置換功能,同時可置換來源要求及伺服器回應封包。 進階的 URL 重新撰寫功能 HTTPS 加速及卸載功能。 進階負載平衡功能

離線、旁聽模式 -Non Inline Deployment – SPAN port

零網路延遲 使用 TCP Reset 來阻斷攻擊以及異常流量 適合使用在產品測試及無法被更改的網路配置。

FortiWeb 可彈性化的配置模式選擇

Web ApplicationServers

FortiWeb

FortiWeb

Page 16: FortiWeb 4.0

• Active / Passive 完整設定故障復原功能。High Availability

HA InterfaceConfiguration synchronizationand availability heartbeat

Server Farm

HA

16

FortiWebFortiWeb

Page 17: FortiWeb 4.0

What Customers Want

17

Page 18: FortiWeb 4.0

早期的網站設計防護功能• 管理者必須手動的定義 :

每一筆 URL, 目錄 ,參數 , 欄位長度和類別 使用正規表示式來判斷動態物件內文, JavaScript,

XML, etc• 經常需要更新白名單• 誤判率高 – 只要不是在白名單上的流量就會被阻斷

18

Page 19: FortiWeb 4.0

準確的保護必須要…

• 非常了解被保護的應用軟體。 整個應用軟體的架構 (URLs, parameters,

methods) 可疑的存取以及正常的存取

• 了解駭客行為 普通的攻擊方法 , 工具 , 和應用軟體的弱點 了解在網頁應用軟體元件的組成 , 人因錯誤、真實世界的攻擊。

19

Page 20: FortiWeb 4.0

FortiWeb Auto Learn 自動學習功能• 了解網頁應用軟體的整體架構

從真實的網路流量來學習物件模型 建築基本的 URL 目錄,參數,及 HTTP methods

• 全自動了解真實要求及行為 可形成參數、欄位以及客戶可改變的欄位 欄位長度及欄位可能的類別 可以接受的字元 (min, max, average)? 是否為必填欄位 ?

• 產生建議設定及圖表。20

Page 21: FortiWeb 4.0

FortiWeb Auto Learn

• 自動學習到保護應用軟體的架構 URLs Parameters Expected behavior

• 分析 : 訪問 攻擊

• 自動產生規則• 可匯出為 PDF 格式

21

Page 22: FortiWeb 4.0

FortiWeb 提供更多層次的保護

Validates Users Detects Information Disclosure,

CC, PII Deviations from Normal User

Behavior Detects Known Application

Attacks (FortiGuard Updated)

Validates HTTP RFC compliance

22

Protocol Validation

Data Leak Prevention

Auto Learn and Validation Rules

Application Attack Signatures

Authentication Policy

Page 23: FortiWeb 4.0

使用者可自訂規則

產生自訂策略 基本規則 (Input validation rules) 自訂機器人 HTTP Protocol 限制 來源 IP (Black list, White list) And much more…

Regular expression statements

23

Page 24: FortiWeb 4.0

資料外洩防護 - Data Leak Prevention

• FortiWeb 監看所有流出的流量以保護使用者個資 : 個人資料外洩 信用卡資料偷竊及誤用

24

Page 25: FortiWeb 4.0

• 依設定時間間隔監看應用軟體檔案的更改時間。• FortiWeb 一旦偵測到更改成,可進行動作:

警告 自動回復

網站防竄改控制 - Web Site Anti-Defacement

25

Page 26: FortiWeb 4.0

網站弱點掃描 - Web Application Scanner

• 容易上手使用。• 知己知彼,了解自己的網站弱點進行防護

常見弱點掃描 SQL Injection, XSS, 異常外部連結掃描

• Reports• Complements WAF

for PCI DSS 6.6

26

Page 27: FortiWeb 4.0

負載平衡及加速功能• XML 網站服務負載平衡Web Services balancing

WSDL or Content routing statements• 網頁應用軟體負載平衡

持續連線逾期機制 設定權值輪詢Weighted Round Robin (3.1) 實體伺服器監控 ,支援 HTTPS, HTTP, TCP, Ping

• 應用軟體加速 結合 ASIC 晶片加速功能 SSL 卸載 TCP 多工 Multiplexing

27

FortiWeb

Page 28: FortiWeb 4.0

• FortiWeb 提供及時資訊監控台 流量監看 攻擊歷史記錄 最新的警告 設備及時狀態

及時系統資訊監控

Page 29: FortiWeb 4.0

事件記錄 / 攻擊 / 警示告警

• 攻擊告警功能 完整 HTTP 要求內容資料

• 流量監看 任何存取資料

• 事件告警 任何

FortiWeb 動作29

Page 30: FortiWeb 4.0

攻擊行為報表豐富的報表種類及圖形式報表 自訂報表項目 定期產生報表–每日、每週、每月或者依須要產生支援多種格式 PDF,

HTML, Word, TXT, MHT formats

30

Page 31: FortiWeb 4.0

流量報表 Reports – Traffic and Events

儲存任何存取網站流量記錄 Application Hits Service type usage

(HTTP/HTTPS) Top sources

FortiWeb 更入,更改稽核記錄

31

Page 32: FortiWeb 4.0

Fortinet Addresses PCI DSS

• FortiWeb addresses PCI 6.6 Web Application Firewall Web Application Scanner

• FortiDB addresses PCI requirements with Data Activity Monitoring and Vulnerability Assessment for Databases Requirement 2 : No vendor supplied defaults for system passwords Requirement 3 : Stored cardholder data must be protected Requirement 6 : Develop and maintain secure systems Requirement 7 : Access to data restricted on a need-to-know basis Requirement 10 : Track and monitor access to cardholder data Requirement 11 : Regular systems testing Requirement 12 : Maintaining an information security policy

32

Page 33: FortiWeb 4.0

Fortinet Confidential

FortiWeb 帶給您的益處• 顯著的降低風險及資料外洩風險 .

精確的防護功能、進行多層次的防護 內建網站弱點掃描功能• 容易配置在任何環境之中

多種配置模式選項• 使用自動學習進行自動管理• 協助達成 PCI 法規

33

Page 34: FortiWeb 4.0

FORTIWEB WVS - SCAN 網頁弱點掃描

34

Page 35: FortiWeb 4.0

FortiWeb Vulnerability Scan 網頁弱點掃描

35

Scan for Commmon Vulnerability, Cross-Site Scripting, SQL Injection, Source Disclosure, OS Commands

Page 36: FortiWeb 4.0

網頁弱點掃描 - Summary

36

網站應用程式漏洞•Cross-Site Scripting (70) •SQL Injection (1) 網站一般性問題•Information (1)

網站伺服器資訊•網站 Web伺服器 •找到的 URL/ 網頁•內含可輸入參數的 URL•外部連結

Page 37: FortiWeb 4.0

網站 Web伺服器資訊

37

Page 38: FortiWeb 4.0

關於 XSS (Cross Site Scripting)

38

此處為其中一則 - 異常警告項目 XSS

由於這一則 XSS 為一處 GET ,若是直接將 URI貼在 Firefox 上……

Page 39: FortiWeb 4.0

真實的 XSS Case.

Page 40: FortiWeb 4.0

Cross Script Result – 使用 FortiWeb 可將此類攻擊阻擋在外

40

將此 URL 貼在瀏灠器上會得到以下結果 !http://*****.edu.tw/2009programarea/pgArea_info.html?amp;year=99&attrib=D%3E%22%3E%3CScRiPt%20%0A%0D%3Ealert%28%22Your%20PC%20has%20been%20HACKed%22%29%3B%3C/ScRiPt%3E

Page 41: FortiWeb 4.0

SQL Injection 植入漏洞• 經由 FortiWeb 弱點掃描的目前已知可能的漏洞

41

Page 42: FortiWeb 4.0

SQL Injection Result

42

正常的觀看只有 19 門或 60 門

Page 43: FortiWeb 4.0

SQL Injection 使用 FortiWeb 可將此類攻擊阻擋在外

43

使用此特別的 URL, 可一次看到 386 門http://*****.edu.tw/2009programarea/pgArea_info.html?attrib=C&year=99%27+or+%271%27%3D%271&查詢 =%E6%9F%A5%E8%A9%A2

Page 44: FortiWeb 4.0

網頁弱點掃描 – 其餘功能 • 找到的 URL/ 網頁可經由首頁進入掃描到的網站連結• 內含可輸入參數的 URL可知道有多少網頁具備 Post 或者 GET 傳入作為參考• 外部連結 可用來掃描是否被植入異常連結

44

可疑連結 – 釣魚網站

Page 45: FortiWeb 4.0

FORTIWEB 報表及自動學習功能

45

Page 46: FortiWeb 4.0

自動學習功能經由自動學習功能,可得到整體網站連結架構,進而使用參數白名單保護功能。

Page 47: FortiWeb 4.0

Auto-Learn Report Enhancement

Page 48: FortiWeb 4.0

偵測異常 PHP Information Leakage 使用 FortiWeb 可將此類攻擊阻擋在外

48

Page 49: FortiWeb 4.0

偵測異常 PHP Information Leakage 使用 FortiWeb 可將此類攻擊阻擋在外

PHP 洩漏了資料庫的帳號密碼以及資料庫名稱

Page 50: FortiWeb 4.0

從 Log 中看到 SQL Injection 的 POST 資料內容

50

Page 51: FortiWeb 4.0

SQL Injection 封包內容

51

Page 52: FortiWeb 4.0

已經可能存在 SQL Injection 檔案列表

52

Page 53: FortiWeb 4.0

FORTIWEB 實機功能簡介

53

Page 54: FortiWeb 4.0

FortiWeb – 攻擊偵測

Fortinet 特徵值資料庫 特徵值由 FortiGuard 全球團隊進行維護, 7x24 線上更新 可進行手動更新 特徵值為進行第一層防護

Page 55: FortiWeb 4.0

Web Site with Anti-Defacement網站防竄改控制• 防止網站伺服器因為系統漏洞或者是惡意使用者從內部更改網站內容• FortiWeb 會將整個網站備份到本身的硬碟中,並定時連入網站伺服器作比對網頁的動作,若發現有任何檔案被更改的話,將會發出告警。• 可啟動全自動恢復,將會從 FortiWeb的備份檔案覆蓋回去。

55

Page 56: FortiWeb 4.0

網站防竄改控制設定

56

Email Alert

Restore Changed File Automatically

Page 57: FortiWeb 4.0

偵測到網站原始碼改變進行改變確認程序 點選

Acknowledge

選擇確認改變

Page 58: FortiWeb 4.0

支援網站外掛認證功能

Page 59: FortiWeb 4.0

正體中文版介面

Page 60: FortiWeb 4.0

每小時的異常流覽• 建議將 PHP 錯誤訊息隱藏• Apache 錯誤訊息隱藏

60

Page 61: FortiWeb 4.0

攻擊來源• Yahoo 的快取攻擊佔了 19.76%

61

Page 62: FortiWeb 4.0

攻擊分佈

62

Page 63: FortiWeb 4.0

攻擊類別分佈

63

Page 64: FortiWeb 4.0

Only Fortinet Offers a Full Security Product Family

Fortinet Cisco IBM Imperva F5 Citrix Barracuda

Web Application Firewall

Yes Yes Yes (DataPower) Yes Yes Yes Yes

UTM Yes Partial Yes No No No

Dedicated appliance for each security

function

Database security Yes No No Yes No No No

Vulnerability Assessment Yes No Yes Partial

(DB only) No No No

End point Security Yes Yes No No No No No

Page 65: FortiWeb 4.0

Questions

Page 66: FortiWeb 4.0

OWASP Top 10 2007

Vulnerability Description

A1 - Cross Site Scripting (XSS) XSS flaws occur whenever an application takes user supplied data and sends it to a web browser without first validating or encoding that content. XSS allows attackers to execute script in the victim's browser which can hijack user sessions, deface web sites, possibly introduce worms, etc

A2 - Injection Flaws Injection flaws, particularly SQL injection, are common in web applications. Injection occurs when user-supplied data is sent to an interpreter as part of a command or query. The attacker's hostile data tricks the interpreter into executing unintended commands or changing data.

A3 - Malicious File Execution Code vulnerable to remote file inclusion (RFI) allows attackers to include hostile code and data, resulting in devastating attacks, such as total server compromise. Malicious file execution attacks affect PHP, XML and any framework which accepts filenames or files from users.

A4 - Insecure Direct Object Reference

A direct object reference occurs when a developer exposes a reference to an internal implementation object, such as a file, directory, database record, or key, as a URL or form parameter. Attackers can manipulate those references to access other objects without authorization

A5 - Cross Site Request Forgery (CSRF)

A CSRF attack forces a logged-on victim's browser to send a pre-authenticated request to a vulnerable web application, which then forces the victim's browser to perform a hostile action to the benefit of the attacker. CSRF can be as powerful as the web application that it attacks.

Page 67: FortiWeb 4.0

OWASP Top 10 2007

Vulnerability Description

A6 - Information Leakage and Improper Error Handling

Applications can unintentionally leak information about their configuration, internal workings, or violate privacy through a variety of application problems. Attackers use this weakness to steal sensitive data, or conduct more serious attacks.

A7 - Broken Authentication and Session Management

Account credentials and session tokens are often not properly protected. Attackers compromise passwords, keys, or authentication tokens to assume other users' identities.

A8 - Insecure Cryptographic Storage

Web applications rarely use cryptographic functions properly to protect data and credentials. Attackers use weakly protected data to conduct identity theft and other crimes, such as credit card fraud.

A9 - Insecure Communications Applications frequently fail to encrypt network traffic when it is necessary to protect sensitive communications.

A10 - Failure to Restrict URL Access

Frequently, an application only protects sensitive functionality by preventing the display of links or URLs to unauthorized users. Attackers can use this weakness to access and perform unauthorized operations by accessing those URLs directly.

Page 68: FortiWeb 4.0

Reference Site• FWB1000Bx2 , Electricity Authority of Cyprus’• FWB1000Bx2 , University of Szczecin , 6th the biggest university

in Poland • FWB1000Bx4 , South African National Roads Agency Ltd

(SANRAL)• FWB1000Bx2 , Paynova, online payment company• FWB1000Bx5 , Kabel Deutschland (KDG), Biggest Cable Net

Provider In Germany• FWB1000Bx2 , Wind Telecomunicazioni fixed-mobile-

Internet communications services operator in It• FWB1000B, Kuwait Finance House - Middle East - Finance• FWB1000B, French Connection - UK - Fashion & Clothing• FWB1000B, GRASCC is the Italian defense department• FWB1000Bx2, China MinSheng Bank • FWB1000B , 立德大學• FWB1000B , 高雄醫大附設中和醫院