Web Security Overview and Demo

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Web Security Overview and Demo - Presentation Transcript

        • Presented by Tony Bibbs
        • October 9, 2008
      Web Application Security
    1. Rasmus Lerdorf “ The Web is broken and it's all your fault.”
    2. “ There is no metric for compliance with a 'culture', and a 'culture of security' is overridden by a culture of 'get the job done' every time.” Jon Espenschied
    3. Common Coding Vulnerabilities
      • Injection Flaws (SQL, LDAP, XPath, etc)‏
      • Cross Site Scripting (XSS)‏
      • Cross Site Request Forgeries (CSRF)‏
      • Buffer Overflows
    4. Injection Flaws
      • “ SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is in fact an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another.”
    5. Cross Site Scripting (XSS)‏
      • “ Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which allow code injection by malicious web users into the web pages viewed by other users. An exploited cross-site scripting vulnerability can be used by attackers to bypass access controls such as the same origin policy. Vulnerabilities of this kind have been exploited to craft powerful phishing attacks and browser exploits. As of 2007, cross-site scripting carried out on websites were roughly 80% of all documented security vulnerabilities.”
    6. CSRF Defined
      • Cross-site request forgery, also known as one click attack, sidejacking or session riding and abbreviated as CSRF (Sea-Surf) or XSRF, is a type of malicious exploit of websites. Although this type of attack has similarities to cross-site scripting (XSS), cross-site scripting requires the attacker to inject unauthorized code into a website, while cross-site request forgery merely transmits unauthorized commands from a user the website trusts.
    7. “ Same Origin” Policy document, cookies bank.com blog.net XHR XHR TAG TAG JS
    8. How CSRF Works
      • GET requests are the easiest:
        • - Beware “src” and “href” attributes
      • POST aren't immune:
        • <body onload=”document.forms[0].submit()”>
        • <form method=”POST” action=”_url_”>
          • <input type=”hidden” name=”amount” value=”$1,000” />
        • </form>
    9. What Can a Hacker Do With CSRF?
      • Anything an authenticated user can do. Click links, submit forms, complete multi-step wizards.
      • Launch external attacks on Intranet sites.
      • No restrictions on same origin policy but are limited in that hackers can't read responses from other origins
    10. Trivial CSRF Exploit
    11. Exploiting Otherwise Secure Networks
    12. CSRF Prevention
      • Avoid Persistent Sessions
      • Use GET method properly
      • Token-based checks with TTL.
      • Double Authenticate via AJAX (read cookie via JS and submit in the body).
      • Code reviews.
    13. Framework-based Security
      • Framework implementations force security precautions.
      • PHP Examples: Flexy, Tainted Variables
      • CSRF prevention in PHP framework.
    14. CSRF Resources
      • CSRFGuard (Java, .NET and PHP)‏
      • CSRTTester
    15. Enterprise CSRF Mitigation
    16. Questions?
    17. Contacting Me
      • [email_address]
      • (515)281-6125
    18. Credits
      • Download this presentation and sample code from here .
      • Some material in this presentation is covered by the OWASP license, specifically work by Eric Sheridan
      • Any of my own contributions are also covered by the OWASP license which can be found at http://www.owasp.org .

    + tonybibbstonybibbs, 2 years ago

    custom

    2167 views, 0 favs, 9 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 2167
      • 1820 on SlideShare
      • 347 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 89
    Most viewed embeds
    • 223 views on http://www.tonybibbs.com
    • 82 views on http://www.planet-php.net
    • 18 views on http://planet-php.org
    • 14 views on http://www.planet-php.org
    • 5 views on http://lj-toys.com

    more

    All embeds
    • 223 views on http://www.tonybibbs.com
    • 82 views on http://www.planet-php.net
    • 18 views on http://planet-php.org
    • 14 views on http://www.planet-php.org
    • 5 views on http://lj-toys.com
    • 2 views on http://canhnm.opensource.com.vn
    • 1 views on http://phpeye.com
    • 1 views on https://sos.sinnerschrader.de
    • 1 views on http://feeds.feedburner.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories