SlideShare una empresa de Scribd logo
1 de 15
Click jacking 以全台灣最大間的 BSP 無名小站 為例 http://www.w retch .cc 阿白 就甘心系列
什麼是 Clickjacking? 一種妨礙瀏覽者 瀏覽網頁 的手法
怎麼樣的手法? 我要 強暴你的滑鼠 在網站內的特定區塊上 植入惡意的 程式碼  或 HTML 、 CSS 語法 企圖改變網站原先應該呈現的內容,讓瀏覽者在不知情的情況下被導向到其他頁面或做不想做的事。
為何存在?目的為何? ‧ 以為姜太空 釣魚 ‧ 牧羊童去 牧馬 ‧ 為了更多更多的 資料 ‧ 景氣差拼 現金 我最愛 ‧ 無名正妹自拍 視訊流出 ‧ 我家太陰了…沒人氣 這個問題 問的很好!
以無名小站為例,實作一下吧 ! 幹
做菜,沒食材?去吃屎! 主食材: 一張透空的 GIF 圖片、無名小站帳號 副食材: CSS 語法、你的大腦 作法: 看投影片。 我們要用一種有點迂迴的手法來展示  Click jacking  的威力。
實作 Clickjacking(1) 先來利用影像處理軟體製作一張畫面透空的 GIF  圖片檔
實作 Clickjacking(2) 然後上傳圖片到你的無名相簿 ( 它真的有在畫面上! )
實作 Clickjacking(3) 接著到你的無名網誌上發表一篇新文章 插入剛上傳的透明圖片,並且幫它上一個連結  ( 看你想要讓瀏覽者被導向到哪裡去 )
實作 Clickjacking(4) 好,現在你的網誌上有一張透明的圖片存在了  ( 白框的就是透明圖片 )
實作 Clickjacking(5) 接下來,我們要利用 CSS 語法 將這張圖片放到最大、將他放置在網頁最上方 佔滿整個頁面,並且儲存該 CSS 語法 註 1 :讓  HTML  的所有元素可以放到最大 註 2 :將文章內的圖片元素,佔滿整個網頁
實作 Clickjacking( 完成 !) 儲存 CSS 語法後,回到網誌首頁。也許你目前看不出來有什麼異樣,但接下來你只要點到網頁上的任何一處,都會被帶到你所指定的頁面上! ( 此時可以宣告你的滑鼠控制權完全被剝奪了。 )
這是一場攻與防的戰爭 既然知道如何攻擊手法了,也要學著怎麼防守吧? ( 假設您的網站 HTML 、 CSS 、外掛程式都必須提供給使用者使用 ) 除了搭配 HTML Filter ,還必須要利用  CSS  優先權的關係,另外製作一份  CSS  檔案讓網頁載入,讓惡意語法起不了作用。 ★★★★ CSS 、 HTML 語法混和攻擊 實作 HTML Filter  建立標籤、屬性白名單,並且重構 HTML 語法。 ★★★☆ 透過變異的  HTML  語法進行攻擊 嚴格審核 / 控管程式碼,只有審核通過的程式碼才能供使用者使用。至少出事的時候能找到作者負起責任。 建議的解決方案 ★★ 透過  JavaScript, VBScript  等程式碼攻擊 防守難度 攻擊方式
最 後 ‧ ‧ ‧ ‧ ‧
我還有工作要做……因為想到  Schedule  就狂冒冷汗… 沒了 Author :  阿白 @HACKERSHOW MSN :  [email_address] 為台灣資訊安全付出一點心力 2009/2/12

Más contenido relacionado

Destacado

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 

Destacado (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Clickjacking