• No results found

Ethical Hacking Penetrating Web 2.0 Security

N/A
N/A
Protected

Academic year: 2021

Share "Ethical Hacking Penetrating Web 2.0 Security"

Copied!
31
0
0

Loading.... (view fulltext now)

Full text

(1)

Ethical Hacking

Ethical Hacking

Penetrating Web 2.0

Penetrating Web 2.0

Security

Security

(2)

Contact

Contact



 Sam BowneSam Bowne



 Computer Networking and Information Computer Networking and Information Technology

Technology



 City College San FranciscoCity College San Francisco



 Email: Email: [email protected]@ccsf.edu



(3)

3

Two Hacking Classes

Two Hacking Classes

CNIT 123: Ethical Hacking and Network Defense

CNIT 123: Ethical Hacking and Network Defense Has been taught since Spring 2007 (four times)

Has been taught since Spring 2007 (four times)

Face

Face--toto--face and Online sections available Fall 2008face and Online sections available Fall 2008

CNIT 124: Advanced Ethical Hacking

CNIT 124: Advanced Ethical Hacking Taught for the first time in Spring 2008

(4)

Supplemental Materials

Supplemental Materials



 Projects from recent researchProjects from recent research



 Students get extra credit by attending Students get extra credit by attending conferences

(5)

5

Certified Ethical Hacker

Certified Ethical Hacker



 Those two classes prepare students for Those two classes prepare students for CEH Certification

(6)

Certificate in Network

Certificate in Network

Security

(7)

7

Associate of Science Degree

(8)

Four Vulnerabilities

Four Vulnerabilities



 SQL InjectionSQL Injection



 16% of Web sites vulnerable16% of Web sites vulnerable



 CrossCross--Site ScriptingSite Scripting



 65% of major sites vulnerable65% of major sites vulnerable



 CrossCross--Site Request ForgerySite Request Forgery



 Almost every Web site with a login is Almost every Web site with a login is

vulnerable

vulnerable



 Layer 7 Denial of ServiceLayer 7 Denial of Service



(9)

SQL Injection

SQL Injection

(10)

E

E

-

-

Commerce Web Site

Commerce Web Site

Web Server

Customer

Sends name, password, order requests, etc.

Database (SQL) Server

(11)

11

E

E

-

-

Commerce Login

Commerce Login



 HTML Form collects name HTML Form collects name and password

and password



 It's processed at the SQL It's processed at the SQL server with code like this:

server with code like this:

SELECT * FROM customer WHERE

SELECT * FROM customer WHERE

username =

username = ‘‘name' AND name' AND password =

(12)

SQL Injection

SQL Injection

If a hacker enters a name of

If a hacker enters a name of

’’ OR 1=1 OR 1=1 --

--The SQL becomes:

The SQL becomes:

SELECT * FROM customer

SELECT * FROM customer

WHERE username =

WHERE username = ‘’‘’ OR 1=1 OR 1=1 ----' AND ' AND password =

password = ‘‘pwpw‘‘

The

The

--

--

ends the statement, making the rest

ends the statement, making the rest

of the line a comment

of the line a comment

1=1 is always true, so this makes the

1=1 is always true, so this makes the

condition true

(13)

13

Demonstration

(14)

SQL Injection Effects

SQL Injection Effects



 This can cause the user to be This can cause the user to be

authenticated as administrator, dump the

authenticated as administrator, dump the

entire database, or have other drastic

entire database, or have other drastic

effects

effects



(15)

15

Sanitize your Inputs

Sanitize your Inputs



 All user input should be checked, and All user input should be checked, and special characters like ' or '' or <

special characters like ' or '' or < oror > > discarded

discarded



 That will reduce vulnerability to SQL That will reduce vulnerability to SQL injection

injection



 The typical SQL Injection vulnerability takes The typical SQL Injection vulnerability takes

more than four months to locate and fix

(16)

Cross

Cross

-

-

Site Scripting

Site Scripting

(XSS)

(17)

17

Web Message Board

Web Message Board

Web server

Clients posting and

reading comments

(18)

Cross

Cross

-

-

Site Scripting (XSS)

Site Scripting (XSS)



 One client posts active content, with One client posts active content, with <script> tags or other programming

<script> tags or other programming

content

content



 When another client reads the messages, When another client reads the messages, the scripts are executed in his or her

the scripts are executed in his or her

browser

browser



 One user attacks another user, using the One user attacks another user, using the vulnerable Web application as a weapon

(19)

19

Demonstration

Demonstration



 <script><script>alert("XSSalert("XSS vulnerability!")</script>vulnerability!")</script>



 <script><script>alert(document.cookiealert(document.cookie)</script>)</script>



(20)

XSS Scripting Effects

XSS Scripting Effects



 Steal another user's authentication cookieSteal another user's authentication cookie



 Hijack sessionHijack session



 Harvest stored passwords from the Harvest stored passwords from the target's browser

target's browser



 Take over machine through browser Take over machine through browser vulnerability

vulnerability



 Redirect WebpageRedirect Webpage



(21)

Cross

Cross

-

-

Site Request

Site Request

Forgery (XSRF)

(22)

Web

Web

-

-

based Email

based Email

Router Target Using Email Attacker Sniffing Traffic To Internet

(23)

23

Cross

Cross

-

-

Site Request Forgery

Site Request Forgery

(XSRF)

(XSRF)



 Gmail sends the password through a Gmail sends the password through a secure HTTPS connection

secure HTTPS connection



 That cannot be captured by the attackerThat cannot be captured by the attacker



 But the cookie identifying the user is sent But the cookie identifying the user is sent in the clear

in the clear——with HTTPwith HTTP



 That can easily be captured by the attackerThat can easily be captured by the attacker



 The attacker gets into your account The attacker gets into your account without learning your password

(24)

Demonstration

(25)

25

XSRF Countermeasure

XSRF Countermeasure



 Use Use https://mail.google.comhttps://mail.google.com instead of instead of http://gmail.com

http://gmail.com



 No other mail service has this option at all, No other mail service has this option at all, as far as I know

(26)

Application

Application

-

-

Layer

Layer

Denial of Service

Denial of Service

(27)

27

Application

Application

-

-

Layer DoS

Layer DoS



 Find small requests that consume a lot of Find small requests that consume a lot of server resources server resources  Application Crashing  Data Destruction  Resource Depletion  Memory  CPU  Bandwidth  Disk Space

(28)

Resource Depletion Example

Resource Depletion Example



 CPU ConsumptionCPU Consumption



 On a large forumOn a large forum



 Create a complicated regular expression Create a complicated regular expression

search

search 

 Use a script to launch the search over and Use a script to launch the search over and

over

(29)

29

Real

Real

-

-

World Test

World Test



 HackticsHacktics, a security company, brought , a security company, brought down a large corporate network with just

down a large corporate network with just

three laptops in an authorized test

three laptops in an authorized test



 Global company with branches in Israel, Global company

Europe and the USA

 Internet Connectivity – 3x50Mbps lines with

load balancing. ISPs provide Cisco

(Riverhead) based Anti DDoS solutions 

 High security network, 30+ Web servers, High security network, 30+ Web servers,

backend servers, Mail Relay, databases

(30)

Hacktics

Hacktics

Results

Results

 DoS was successful to all systems but one  Two applications crashed completely after

a few dozen requests only

 Most other applications stopped

responding after 5-15 minutes of script

execution from up to three laptops (though with most a single laptop was sufficient)

(31)

31

References

References



 Where the Web is WeakWhere the Web is Weak



 http://www.forbes.com/2008/05/14/webhttp://www.forbes.com/2008/05/14/web-

-hacking

hacking--googlegoogle--techtech--security08security08- -cx_ag_0514webhack.html

cx_ag_0514webhack.html



 ApplicationApplication--Layer DDoS AttacksLayer DDoS Attacks



 networks.rice.edu/papers/2006networks.rice.edu/papers/2006--0404--InfocomInfocom-

-final.ppt

References

Related documents

Making sacramental wine requires special attention and care, starting with qvevri washing and marani hygiene and ending with fermentation, aging and storage. During

Quality assurance for accountability tends to focus on universities as corporate entities but often ignores or impedes meaningful pedagogical reform and can detract from the quality

These qualities allow us to offer Thai and foreign clients top-quality legal consultancy and advice In each of these areas Rödl &amp; Partner is able to provide assistance to

For cylinder blocks without separate bearing plates, refer to section Bearing Plates (page 8) to locate the sealing land surfaces on the cylinder block running surface..

MPDC has conducted training in IT Security for Ethical Hacking, Hacking Forensic and Investigation, Security Analyst, Penetration Testing, IT Security Audit, and IT

Information Security and Ethical Hacking is the latest buzzword in the industry3. In the past five years, the percentage of hacking crimes, data thefts,

Why Ethical Hacking &amp; Cyber Security Training from Magniva Technology.  Lot of Major Projects will be covered in

Patients choosing continuous veno-venous hemo filtration (CVVH) mode were collected into CVVH group and patients choosing continuous venovenous hemodia filtration (CVVHDF) mode