SlideShare una empresa de Scribd logo
1 de 47
Descargar para leer sin conexión
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Web Architecture - Mechanism and Threats
Sumedt Jitpukdebodin
Senior Security Researcher
CompTIA Security+, LPIC-1 , NCLA, C|EHv6, eCPPT, eWPT, IWSS, CPTE
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
~# whoami
 Name: Sumedt Jitpukdebodin(สุเมธ จิตภักดีบดินทร์)
 My blog: http://www.r00tsec.com, http://twitter.com/materaj, https://www.facebook.com/hackandsecbook
 Jobs
– I-SECURE Co., Ltd.
– Research And Develop Engineer, Senior Web Application Security Specialist, Senior Security Researcher
– Writer
– English article@ http://packetstormsecurity.com/files/author/9011/ and please google my name.
– Many Thai article, please google my Thai name.
– หนังสือ “Hacking & Security Book "Network Security หนังสือฉบับก้าวสู่นักทดสอบและป้ องกันการเจาะระบบ”
 Hobby: Penetration Testing, Hacking, Reading Info Security, Play Games, Traveling around the world, Write
Article, Teaching and more...
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Agenda
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Agenda
 Web Architecture
 Web Architecture Attack
 Security Controls & Mechanism
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Web Architecture
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Basic Web Architecture
 Two Tier Architecture
– Web browser display content that return from Web Server
– Web server provide resource for client
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
HTML
 HTML(Hyper Text Markup Language)
– Document Layout Language
– Viewed by using Web Browser.
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
URI
 URI(Universal Resource Identifier)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
URI(2)
 URL(Universal Resource Locator)
 URN(Universal Resource Name)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
HTTP
 HTTP(Hyper Text Transfer Protocol)
 HTTP is an application layer.
 HTTP has 2 way communication: HTTP Request and HTTP Response.
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
HTTP(2)
 Request Message
– Request Line
– Request Header
– An empty line
– An optional Message Body
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
HTTP(3)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Request Method
– HEAD
– GET
– POST
– PUT
– DELETE
– TRACE
– OPTIONS
– CONNECT
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Safe Method
– HEAD
– GET
– OPTIONS
– TRACE
– POST
– PUT
– DELETE
– CONNECT
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Status Code
 Success: 2xx
 Redirection: 3xx
 Client-Side Error: 4xx
 Server-Side Error: 5xx
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
HTTP Session State
 HTTP is stateless Protocol
 Solutions
– Cookies
– Sessions
– Hidden variable
– URL encode parameter( /index.php?session_id=$session_code)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Web Architecture Extension
 Two tier architecture is not enough
 Common Gateway Interface(CGI)
 Standard protocol for interfacing with external application software with
a web server
 CGI program are executable programs that run on the web server.
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Javascript
 Scripting language designed for dynamic, interactive web application
 Run on client side.
 Preprocessing data on the client before submission to a server.
 Changing content type and styles
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Three tier web architecture
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Make HTTP to stateful(2)
 Cookie
 A text stored on a client’s computer by a web browser.
 Sent as an HTTP Header
 Can used for authenticating, session tracking
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Server and Client Processing
 Server-Side Processing
 PHP
 ASP
 ASP.NET
 Perl
 J2EE
 Python, Django
 Ruby On Rail
 Client-Side Processing
 CSS
 HTML
 Javascript
 Adobe Flash
 Microsoft Silverlight
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
AJAX
 Asynchronous Javascript and XML(AJAX)
 Create by Jesse James Garrett, Febuary 18, 2005
 Ajax Incorporates
 XHTML, CSS, Document Object Model(DOM), XML and XSLT,
XMLHttpRequest, Javascript
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
AJAX(2)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
AJAX(3)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
JSON
 Javascript Object Notation(JSON)
 JSON is lightweight computer data interchange format.
 JSON is based on a subset of Javascript programming language.
 Using of XML format.
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
JSON Request && Response
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
JSON(2)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
XML
 eXtensible Markup Language
 Using for information exchange.
 Two primary building blocks of XML are elements and attributes.
 Elements are tags and have values.
 Elements are structured as a tree.
 Alternatively, elements may have both attributes as well as data.
 Attributes help you to give more meaning and describe your
element more efficiently and clearly.
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
XML(2)
 Tag
 Element
 Content
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
XML(3)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
XML(4)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
XML vs JSON
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Web Services
 Web service is a software system designed to support machine-to-
machine intraction over a network.
 Web service are frequently just used to Internet Application
Programming Interfaces(API).
 Web service use HTTP for transmitting messages(RPC,SOAP,REST)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
SOAP vs REST
 SOAP(Simple Object Access Protocol)
– Web service based on XML
 REST(Representational State Transfer)
– Web service represent in format of application
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
SOAP vs REST
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
SOAP Example
Reference:: http://www.soapui.org/The-World-Of-API-Testing/soap-vs-rest-
challenges.html
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
REST Example
Reference:: http://www.soapui.org/The-World-Of-API-Testing/soap-vs-rest-
challenges.html
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Web Architecture Attack
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Web Architecture
Reference :: Web Application Hacking/Security
101(https://docs.google.com/presentation/d/1fw7fO7kmVTcfXuupGTezSM76cdQH3IbYos5xu95L
yMs/edit#slide=id.p)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Web Architecture Attack
Reference :: Web Application Hacking/Security
101(https://docs.google.com/presentation/d/1fw7fO7kmVTcfXuupGTezSM76cdQH3IbYos5xu95L
yMs/edit#slide=id.p)
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
OWASP 2013
 Injection
 Broken Authentication and Session Management
 Cross-Site Scripting(XSS)
 Insecure Direct Object Rerefence
 Security Misconfiguration
 Sensitive Data Exposure
 Missing Function Level Access Control
 Cross-Site Request Forgery(CSRF)
 Using Components with Known Vulnerability
 Unvalidated Redirects and Forwards
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Security Controls & Mechanism
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Security Control
 Application Layer
 Network Layer
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Application Layer
 Input Validation
 Sessions Management
 Authentication Method
 Strong Policy(Such as password policy)
 Same-Origin Policy
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Network Layer
 Firewall
 Intrusion Detection System/Intrusion Prevention System(IDS/IPS)
 Web Application Firewall(WAF)
 Centralize Log Server
© Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice.
Network Layer Diagram
Reference :: http://www.umv.co.kr/main_eng/sm_enterprise.php
www.i-secure.co.th
Questions
© Copyright 2013 ACIS i-secure Co., Ltd. The informationcontained herein is subject to change without notice.

Más contenido relacionado

La actualidad más candente

RESTful services
RESTful servicesRESTful services
RESTful services
gouthamrv
 
[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...
[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...
[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...
Shreeraj Shah
 
Java Script Based Client Server Webapps 2
Java Script Based Client Server Webapps 2Java Script Based Client Server Webapps 2
Java Script Based Client Server Webapps 2
kriszyp
 
RESTful SOA - 中科院暑期讲座
RESTful SOA - 中科院暑期讲座RESTful SOA - 中科院暑期讲座
RESTful SOA - 中科院暑期讲座
Li Yi
 
Html5 localstorage attack vectors
Html5 localstorage attack vectorsHtml5 localstorage attack vectors
Html5 localstorage attack vectors
Shreeraj Shah
 

La actualidad más candente (20)

RESTful services
RESTful servicesRESTful services
RESTful services
 
Design Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIsDesign Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIs
 
იოსებ ძმანაშვილი - The Web APIs
იოსებ ძმანაშვილი - The Web APIsიოსებ ძმანაშვილი - The Web APIs
იოსებ ძმანაშვილი - The Web APIs
 
OAuth and OpenID Connect for Microservices
OAuth and OpenID Connect for MicroservicesOAuth and OpenID Connect for Microservices
OAuth and OpenID Connect for Microservices
 
[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...
[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...
[Infosecworld 08 Orlando] New Defenses for .NET Web Apps: IHttpModule in Prac...
 
Best practices for RESTful web service design
Best practices for RESTful web service designBest practices for RESTful web service design
Best practices for RESTful web service design
 
REST - Representational State Transfer
REST - Representational State TransferREST - Representational State Transfer
REST - Representational State Transfer
 
Understanding REST
Understanding RESTUnderstanding REST
Understanding REST
 
Web Service Security
Web Service SecurityWeb Service Security
Web Service Security
 
REST & RESTful Web Services
REST & RESTful Web ServicesREST & RESTful Web Services
REST & RESTful Web Services
 
Elegant Rest Design Webinar
Elegant Rest Design WebinarElegant Rest Design Webinar
Elegant Rest Design Webinar
 
Java Script Based Client Server Webapps 2
Java Script Based Client Server Webapps 2Java Script Based Client Server Webapps 2
Java Script Based Client Server Webapps 2
 
Rest & RESTful WebServices
Rest & RESTful WebServicesRest & RESTful WebServices
Rest & RESTful WebServices
 
RESTEasy
RESTEasyRESTEasy
RESTEasy
 
RESTful SOA - 中科院暑期讲座
RESTful SOA - 中科院暑期讲座RESTful SOA - 中科院暑期讲座
RESTful SOA - 中科院暑期讲座
 
Rest and the hypermedia constraint
Rest and the hypermedia constraintRest and the hypermedia constraint
Rest and the hypermedia constraint
 
Representational State Transfer (REST) and HATEOAS
Representational State Transfer (REST) and HATEOASRepresentational State Transfer (REST) and HATEOAS
Representational State Transfer (REST) and HATEOAS
 
Html5 localstorage attack vectors
Html5 localstorage attack vectorsHtml5 localstorage attack vectors
Html5 localstorage attack vectors
 
HTML5 Top 10 Threats - Silent Attacks and Stealth Exploits
HTML5 Top 10 Threats - Silent Attacks and Stealth ExploitsHTML5 Top 10 Threats - Silent Attacks and Stealth Exploits
HTML5 Top 10 Threats - Silent Attacks and Stealth Exploits
 
Content Security Policy (CSP)
Content Security Policy (CSP)Content Security Policy (CSP)
Content Security Policy (CSP)
 

Destacado (6)

Hacking with paper
Hacking with paperHacking with paper
Hacking with paper
 
Fundamental of malware analysis
Fundamental of malware analysisFundamental of malware analysis
Fundamental of malware analysis
 
R u hacked
R u hackedR u hacked
R u hacked
 
Purple team is awesome
Purple team is awesomePurple team is awesome
Purple team is awesome
 
Security awareness training
Security awareness trainingSecurity awareness training
Security awareness training
 
The top 10 windows logs event id's used v1.0
The top 10 windows logs event id's used v1.0The top 10 windows logs event id's used v1.0
The top 10 windows logs event id's used v1.0
 

Similar a Web architecture mechanism and threats

API Security: Securing Digital Channels and Mobile Apps Against Hacks
API Security: Securing Digital Channels and Mobile Apps Against HacksAPI Security: Securing Digital Channels and Mobile Apps Against Hacks
API Security: Securing Digital Channels and Mobile Apps Against Hacks
Akana
 
Defcon9 Presentation2001
Defcon9 Presentation2001Defcon9 Presentation2001
Defcon9 Presentation2001
Miguel Ibarra
 
Web Application Security - "In theory and practice"
Web Application Security - "In theory and practice"Web Application Security - "In theory and practice"
Web Application Security - "In theory and practice"
Jeremiah Grossman
 

Similar a Web architecture mechanism and threats (20)

Java API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFishJava API for WebSocket 1.0: Java EE 7 and GlassFish
Java API for WebSocket 1.0: Java EE 7 and GlassFish
 
Accelerating breakthrough business technologies in atlanta, tag featured spea...
Accelerating breakthrough business technologies in atlanta, tag featured spea...Accelerating breakthrough business technologies in atlanta, tag featured spea...
Accelerating breakthrough business technologies in atlanta, tag featured spea...
 
Open APIs - Risks and Rewards (Øredev 2013)
Open APIs - Risks and Rewards (Øredev 2013)Open APIs - Risks and Rewards (Øredev 2013)
Open APIs - Risks and Rewards (Øredev 2013)
 
API Security: Securing Digital Channels and Mobile Apps Against Hacks
API Security: Securing Digital Channels and Mobile Apps Against HacksAPI Security: Securing Digital Channels and Mobile Apps Against Hacks
API Security: Securing Digital Channels and Mobile Apps Against Hacks
 
HTTP_Header_Security.pdf
HTTP_Header_Security.pdfHTTP_Header_Security.pdf
HTTP_Header_Security.pdf
 
API Roles In Cloud and Mobile Security - Greg Olsen, IT Manager, Integration ...
API Roles In Cloud and Mobile Security - Greg Olsen, IT Manager, Integration ...API Roles In Cloud and Mobile Security - Greg Olsen, IT Manager, Integration ...
API Roles In Cloud and Mobile Security - Greg Olsen, IT Manager, Integration ...
 
Implementing Data Caching and Data Synching Using Oracle MAF
Implementing Data Caching and Data Synching Using Oracle MAFImplementing Data Caching and Data Synching Using Oracle MAF
Implementing Data Caching and Data Synching Using Oracle MAF
 
Best Practices You Must Apply to Secure Your APIs - Scott Morrison, SVP & Dis...
Best Practices You Must Apply to Secure Your APIs - Scott Morrison, SVP & Dis...Best Practices You Must Apply to Secure Your APIs - Scott Morrison, SVP & Dis...
Best Practices You Must Apply to Secure Your APIs - Scott Morrison, SVP & Dis...
 
E-Business And Technology Essay
E-Business And Technology EssayE-Business And Technology Essay
E-Business And Technology Essay
 
Asynchronous architecture (Node.js & Vert.x)
Asynchronous architecture (Node.js & Vert.x)Asynchronous architecture (Node.js & Vert.x)
Asynchronous architecture (Node.js & Vert.x)
 
Unit 1 b
Unit 1 bUnit 1 b
Unit 1 b
 
Simple Data Movement Patterns: Legacy Application to Cloud-Native Environment...
Simple Data Movement Patterns: Legacy Application to Cloud-Native Environment...Simple Data Movement Patterns: Legacy Application to Cloud-Native Environment...
Simple Data Movement Patterns: Legacy Application to Cloud-Native Environment...
 
Oracle REST Data Services
Oracle REST Data ServicesOracle REST Data Services
Oracle REST Data Services
 
Trust No One: The New Security Model for Web APIs - SecTor talk by Greg Kliew...
Trust No One: The New Security Model for Web APIs - SecTor talk by Greg Kliew...Trust No One: The New Security Model for Web APIs - SecTor talk by Greg Kliew...
Trust No One: The New Security Model for Web APIs - SecTor talk by Greg Kliew...
 
Conf2013 bchristensen thebig_t
Conf2013 bchristensen thebig_tConf2013 bchristensen thebig_t
Conf2013 bchristensen thebig_t
 
IRJET- Micro-Content Shortlisting using Interactive AI Method
IRJET- Micro-Content Shortlisting using Interactive AI MethodIRJET- Micro-Content Shortlisting using Interactive AI Method
IRJET- Micro-Content Shortlisting using Interactive AI Method
 
IRJET- Semantic Web Mining and Semantic Search Engine: A Review
IRJET- Semantic Web Mining and Semantic Search Engine: A ReviewIRJET- Semantic Web Mining and Semantic Search Engine: A Review
IRJET- Semantic Web Mining and Semantic Search Engine: A Review
 
Defcon9 Presentation2001
Defcon9 Presentation2001Defcon9 Presentation2001
Defcon9 Presentation2001
 
Web Application Security - "In theory and practice"
Web Application Security - "In theory and practice"Web Application Security - "In theory and practice"
Web Application Security - "In theory and practice"
 
Mobile Single-Sign On: Extending SSO Out to the Client - Layer 7's CTO Scott ...
Mobile Single-Sign On: Extending SSO Out to the Client - Layer 7's CTO Scott ...Mobile Single-Sign On: Extending SSO Out to the Client - Layer 7's CTO Scott ...
Mobile Single-Sign On: Extending SSO Out to the Client - Layer 7's CTO Scott ...
 

Más de Sumedt Jitpukdebodin (8)

How to create your own hack environment
How to create your own hack environmentHow to create your own hack environment
How to create your own hack environment
 
Phishing
PhishingPhishing
Phishing
 
Which side are you
Which side are youWhich side are you
Which side are you
 
Endpoint is not enough
Endpoint is not enoughEndpoint is not enough
Endpoint is not enough
 
Antivirus is hopeless
Antivirus is hopelessAntivirus is hopeless
Antivirus is hopeless
 
DDoS handlering
DDoS handleringDDoS handlering
DDoS handlering
 
Incident response before:after breach
Incident response before:after breachIncident response before:after breach
Incident response before:after breach
 
What should I do when my website got hack?
What should I do when my website got hack?What should I do when my website got hack?
What should I do when my website got hack?
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Web architecture mechanism and threats

  • 1. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Web Architecture - Mechanism and Threats Sumedt Jitpukdebodin Senior Security Researcher CompTIA Security+, LPIC-1 , NCLA, C|EHv6, eCPPT, eWPT, IWSS, CPTE
  • 2. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. ~# whoami  Name: Sumedt Jitpukdebodin(สุเมธ จิตภักดีบดินทร์)  My blog: http://www.r00tsec.com, http://twitter.com/materaj, https://www.facebook.com/hackandsecbook  Jobs – I-SECURE Co., Ltd. – Research And Develop Engineer, Senior Web Application Security Specialist, Senior Security Researcher – Writer – English article@ http://packetstormsecurity.com/files/author/9011/ and please google my name. – Many Thai article, please google my Thai name. – หนังสือ “Hacking & Security Book "Network Security หนังสือฉบับก้าวสู่นักทดสอบและป้ องกันการเจาะระบบ”  Hobby: Penetration Testing, Hacking, Reading Info Security, Play Games, Traveling around the world, Write Article, Teaching and more...
  • 3. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Agenda
  • 4. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Agenda  Web Architecture  Web Architecture Attack  Security Controls & Mechanism
  • 5. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Web Architecture
  • 6. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Basic Web Architecture  Two Tier Architecture – Web browser display content that return from Web Server – Web server provide resource for client
  • 7. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. HTML  HTML(Hyper Text Markup Language) – Document Layout Language – Viewed by using Web Browser.
  • 8. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. URI  URI(Universal Resource Identifier)
  • 9. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. URI(2)  URL(Universal Resource Locator)  URN(Universal Resource Name)
  • 10. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. HTTP  HTTP(Hyper Text Transfer Protocol)  HTTP is an application layer.  HTTP has 2 way communication: HTTP Request and HTTP Response.
  • 11. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. HTTP(2)  Request Message – Request Line – Request Header – An empty line – An optional Message Body
  • 12. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. HTTP(3)
  • 13. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Request Method – HEAD – GET – POST – PUT – DELETE – TRACE – OPTIONS – CONNECT
  • 14. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Safe Method – HEAD – GET – OPTIONS – TRACE – POST – PUT – DELETE – CONNECT
  • 15. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Status Code  Success: 2xx  Redirection: 3xx  Client-Side Error: 4xx  Server-Side Error: 5xx
  • 16. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. HTTP Session State  HTTP is stateless Protocol  Solutions – Cookies – Sessions – Hidden variable – URL encode parameter( /index.php?session_id=$session_code)
  • 17. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Web Architecture Extension  Two tier architecture is not enough  Common Gateway Interface(CGI)  Standard protocol for interfacing with external application software with a web server  CGI program are executable programs that run on the web server.
  • 18. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Javascript  Scripting language designed for dynamic, interactive web application  Run on client side.  Preprocessing data on the client before submission to a server.  Changing content type and styles
  • 19. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Three tier web architecture
  • 20. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Make HTTP to stateful(2)  Cookie  A text stored on a client’s computer by a web browser.  Sent as an HTTP Header  Can used for authenticating, session tracking
  • 21. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Server and Client Processing  Server-Side Processing  PHP  ASP  ASP.NET  Perl  J2EE  Python, Django  Ruby On Rail  Client-Side Processing  CSS  HTML  Javascript  Adobe Flash  Microsoft Silverlight
  • 22. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. AJAX  Asynchronous Javascript and XML(AJAX)  Create by Jesse James Garrett, Febuary 18, 2005  Ajax Incorporates  XHTML, CSS, Document Object Model(DOM), XML and XSLT, XMLHttpRequest, Javascript
  • 23. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. AJAX(2)
  • 24. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. AJAX(3)
  • 25. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. JSON  Javascript Object Notation(JSON)  JSON is lightweight computer data interchange format.  JSON is based on a subset of Javascript programming language.  Using of XML format.
  • 26. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. JSON Request && Response
  • 27. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. JSON(2)
  • 28. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. XML  eXtensible Markup Language  Using for information exchange.  Two primary building blocks of XML are elements and attributes.  Elements are tags and have values.  Elements are structured as a tree.  Alternatively, elements may have both attributes as well as data.  Attributes help you to give more meaning and describe your element more efficiently and clearly.
  • 29. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. XML(2)  Tag  Element  Content
  • 30. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. XML(3)
  • 31. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. XML(4)
  • 32. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. XML vs JSON
  • 33. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Web Services  Web service is a software system designed to support machine-to- machine intraction over a network.  Web service are frequently just used to Internet Application Programming Interfaces(API).  Web service use HTTP for transmitting messages(RPC,SOAP,REST)
  • 34. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. SOAP vs REST  SOAP(Simple Object Access Protocol) – Web service based on XML  REST(Representational State Transfer) – Web service represent in format of application
  • 35. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. SOAP vs REST
  • 36. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. SOAP Example Reference:: http://www.soapui.org/The-World-Of-API-Testing/soap-vs-rest- challenges.html
  • 37. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. REST Example Reference:: http://www.soapui.org/The-World-Of-API-Testing/soap-vs-rest- challenges.html
  • 38. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Web Architecture Attack
  • 39. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Web Architecture Reference :: Web Application Hacking/Security 101(https://docs.google.com/presentation/d/1fw7fO7kmVTcfXuupGTezSM76cdQH3IbYos5xu95L yMs/edit#slide=id.p)
  • 40. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Web Architecture Attack Reference :: Web Application Hacking/Security 101(https://docs.google.com/presentation/d/1fw7fO7kmVTcfXuupGTezSM76cdQH3IbYos5xu95L yMs/edit#slide=id.p)
  • 41. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. OWASP 2013  Injection  Broken Authentication and Session Management  Cross-Site Scripting(XSS)  Insecure Direct Object Rerefence  Security Misconfiguration  Sensitive Data Exposure  Missing Function Level Access Control  Cross-Site Request Forgery(CSRF)  Using Components with Known Vulnerability  Unvalidated Redirects and Forwards
  • 42. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Security Controls & Mechanism
  • 43. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Security Control  Application Layer  Network Layer
  • 44. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Application Layer  Input Validation  Sessions Management  Authentication Method  Strong Policy(Such as password policy)  Same-Origin Policy
  • 45. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Network Layer  Firewall  Intrusion Detection System/Intrusion Prevention System(IDS/IPS)  Web Application Firewall(WAF)  Centralize Log Server
  • 46. © Copyright 2013 i-secure Co., Ltd. The informationcontained herein is subject to change without notice. Network Layer Diagram Reference :: http://www.umv.co.kr/main_eng/sm_enterprise.php
  • 47. www.i-secure.co.th Questions © Copyright 2013 ACIS i-secure Co., Ltd. The informationcontained herein is subject to change without notice.