Why Session Hijacking Remains a Persistent Web Threat

Web Security is a significant concern for me. Over the past few years, I’ve been learning about ethical hacking and the broader field of web and server security and one topic that has always intrigued me is session hijacking. While many security threats, such as weak passwords, SQL injections, and cross-site scripting (XSS), have been mitigated and are relatively easy to fix, session hijacking remains a persistent threat. Its ease of exploitation and potential damage make it a serious risk to web applications. ...

14 October 2024 · 5 min · Gaëtan Grond

Protecting Data in Django Admin: Preventing Accidental Deletions

The Django admin interface is one of the standout features that make Django such a powerful framework. It allows you to manage your data, customers, and models with ease. However, as with any tool that provides significant control over your application’s data, there’s a need to ensure that sensitive actions like deletions are handled carefully. ...

23 September 2024 · 3 min · Gaëtan Grond

How to Add MFA to Django Allauth in Under 5mn

As of 0.56.0 release of django-allauth (2023-09-07) the support for Multi-Factor Authentication (MFA) has been added. This is great news for the Django developer as it allows you to easily add MFA to your applications, but the documentation is still a bit sparse, and it appears that the feature is not widely known yet. ...

13 March 2024 · 4 min · Gaëtan Grond

The 3-2-1 Backup Rule: What It Actually Costs to Implement

As good of a developer as you are, you are not immune to data loss, mistakes happen either by you or an outside force, so it is important to have a backup strategy in place and this needs to be done before you need it. One of the most popular backup strategies is the 3-2-1 backup strategy, but what does it mean and how can you implement it for almost no cost and effort? ...

13 November 2023 · 5 min · Gaëtan Grond

Beware of Fake Vulnerabilities Reports and Fear Mongering Tactics

A few days ago I started receiving concerning emails directly to my work email address, the email was from a so-called bug bounty hunter that was claiming to have found a vulnerability in one of our products, the email was very generic and it was not clear what was the vulnerability, the only thing that was clear was that the person was asking for money to disclose the vulnerability. ...

14 October 2023 · 3 min · Gaëtan Grond

Understanding IDOR Vulnerability in Django and how to fix it

Django is by design very secure, most of the common vulnerabilities such as XSS, CSRF, SQL injection, clickjacking are fixed by the simple use of the framework, but there is one that is not fixed by default, and it is the Idor vulnerability. In this article we will see what it is and how to fix it. ...

15 August 2023 · 4 min · Gaëtan Grond

Secure Your Django Administration with 6 simple steps

One of the most loved features of Django is the built-in administration interface. It allows for an easy way to manage your data and is highly customizable. However, it is also a very common target for attackers. In this article, we will look at some of the most common attacks against the Django administration interface and how to protect against them. ...

3 August 2023 · 8 min · Gaëtan Grond

How to Customize The CSRF Failure View in Django

When working with Django and third party libraries, you may encounter a CSRF error on login or any other form submission. This is because Django requires a CSRF token to be sent with every form submission except GET requests or if the form has the csrf_exempt decorator. During my work with Django, I have encountered this error many times, sometimes due to my own mistakes and sometimes due to third party libraries or user behavior. ...

1 August 2023 · 3 min · Gaëtan Grond

Locking Down a Production Server in 5 Minutes with a Cloud Firewall

I am a long time user of DigitalOcean and I have been using many of their services for more than 6 years, including their Cloud Firewall. I have been using it for a long time and I have been very happy with it. Most of the time when people create a new droplet they just leave their server open to the world, which is not a good idea, especially if you are running a production server. ...

31 July 2023 · 5 min · Gaëtan Grond