WebAppSec 101: OWASP Top 10 and WebGoat Study Guide

OWASP and the Open Web Application Security Project

  • Organization Overview: The Open Web Application Security Project (OWASP) is a foundation dedicated to web application security.

  • Leadership:

    • OC Chapter Lead: Neil Matatall (original creator of the presentation).

    • UCI Chapter Lead (as of 5/17/2010): Kyle.

  • Upcoming Events Reference: AppSec US 2010 was scheduled for September 7th at UCI.

The OWASP Top 10 Most Critical Web Application Security Vulnerabilities

  • General List:

    1. Injection Flaws (e.g., SQL Injection, XPATH Injection).

    2. Cross-Site Scripting (XSS).

    3. Broken Authentication and Session Management.

    4. Insecure Direct Object Reference.

    5. Cross Site Request Forgery (CSRF).

    6. Security Misconfiguration.

    7. Insecure Cryptographic Storage.

    8. Failure to Restrict URL Access.

    9. Insufficient Transport Layer Protection.

    10. Unvalidated Redirects and Forwards.

Cross-Site Scripting (XSS)

  • Definition: XSS involves malicious code that changes the look and function of a legitimate web application. It originated from older phishing attacks but is considered less obvious and more dangerous to the user/victim.

  • Evolution: It has become more widespread due to the rise of Rich Internet Applications using dynamic content, JavaScript, and AJAX.

  • Real-World Occurrences:

    • Obama Community Blog: A hacker inserted JavaScript to redirect users to Hillary Clinton’s website.

    • Affected Entities: XSS bugs have been identified on FBI.gov, CNN.com, Time.com, eBay, Yahoo, Apple, Microsoft, ZDNet, Wired, and Newsbytes.

  • Attack Mechanism:

    1. The Hacker injects a script into a website.

    2. The Web App retrieves compromised page content.

    3. The End User unknowingly executes the script in their browser.

  • Impact:

    • Data on the web page can be sent anywhere in the world.

    • Cookies can be stolen.

    • It facilitates other attacks such as CSRF and Session Attacks.

    • Site behavior can be completely hijacked.

  • Prevention Strategies:

    • Escaping: Escape all user input when displayed. This converts output to harmless HTML entities. For example: $$