• Click-Jacking and a little Phishing – Basic Security Part 8

    by  • 26 July 2012

    NB: This is the eighth post in a series of posts on web application security. Click-jacking is a process of “stealing” clicks on your site, redirecting them to other places, either by using an XSS vector to replace the targets of links (or whole sections of the page) or by putting your page in...

    Read more →

    Server Configuration – Basic Security Part 7

    by  • 25 July 2012

    NB: This is the seventh post in a series of posts on web application security. Configuring a server correctly is both 1) hard and 2) critical. You’ve probably spent a bunch of time configuring Apache or nginx, or whatever your server of choice is, for performance. But have you configured it for security? I...

    Read more →

    Session Fixation and Hijacking – Basic Security Part 6

    by  • 24 July 2012

    NB: This is the sixth post in a series of posts on web application security. Don’t put session IDs in the URL. Django explicitly does not support this because it’s just dangerous. Use SSL and secure cookies. Use HttpOnly cookies. Is it really that easy? Yes and no. But start there and you’ve already...

    Read more →

    Access Control – Basic Security Part 5

    by  • 23 July 2012

    NB: This is the fifth post in a series of posts on web application security. Proper access control is an absolutely key part of web app security and is easily overlooked—possibly because it’s so easy. In Django, to hide a link from someone, you just: {% if perms.myapp.mymodel %}     <a href="{% url...

    Read more →

    Injections, SQL and otherwise – Basic Security Part 4

    by  • 20 July 2012

    NB: This is the fourth post in a series of posts on web application security. SQL Injection SQL injection is a vector that lets a user insert their own SQL into a statement sent to your database server. The typical example is: "SELECT * FROM users WHERE username = ‘" + username + "’...

    Read more →