{"id":2684,"date":"2010-05-07T10:41:25","date_gmt":"2010-05-07T09:41:25","guid":{"rendered":"https:\/\/www.darknet.org.uk\/?p=2684"},"modified":"2015-09-09T19:37:35","modified_gmt":"2015-09-09T11:37:35","slug":"jarlsberg-learn-web-application-exploits-and-defenses","status":"publish","type":"post","link":"https:\/\/www.darknet.org.uk\/2010\/05\/jarlsberg-learn-web-application-exploits-and-defenses\/","title":{"rendered":"Jarlsberg – Learn Web Application Exploits and Defenses"},"content":{"rendered":"

This codelab is built around Jarlsberg \/y\u00e4rlz’\u00b7b\u0259rg\/, a small, cheesy web application that allows its users to publish snippets of text and store assorted files. “Unfortunately,” Jarlsberg has multiple security bugs ranging from cross-site scripting and cross-site request forgery, to information disclosure, denial of service, and remote code execution. The goal of this codelab is to guide you through discovering some of these bugs and learning ways to fix them both in Jarlsberg and in general.<\/p>\n

\"Jarlsberg<\/p>\n

The codelab is organized by types of vulnerabilities. In each section, you’ll find a brief description of a vulnerability and a task to find an instance of that vulnerability in Jarlsberg. Your job is to play the role of a malicious hacker and find and exploit the security bugs. In this codelab, you’ll use both black-box hacking and white-box hacking. In black box hacking, you try to find security bugs by experimenting with the application and manipulating input fields and URL parameters, trying to cause application errors, and looking at the HTTP requests and responses to guess server behavior. You do not have access to the source code, although understanding how to view source and being able to view http headers (as you can in Chrome or LiveHTTPHeaders for Firefox) is valuable. Using a web proxy like Burp<\/a> or WebScarab<\/a> may be helpful in creating or modifying requests. In white-box hacking, you have access to the source code and can use automated or manual analysis to identify bugs. You can treat Jarlsberg as if it’s open source: you can read through the source code to try to find bugs. Jarlsberg is written in Python, so some familiarity with Python can be helpful.<\/p>\n