{% extends 'introduction/base.html' %} {% block content %} {% block title %} Sensitive Data Exposure {% endblock %}

Senstive Data Exposure

What is Sensitive Data Exposure

Information disclosure, also known as information leakage, is when a website unintentionally reveals sensitive information to its users. Depending on the context, websites may leak all kinds of information to a potential attacker, including:

One of the features of having DEBUG=True is dumping lots of metadata from your environment, including the whole settings.py configurations, when a exception occurs.


Mitigation

Even though you will never be using DEBUG=True, you need extra care when naming the configurations in the settings.py module. Make sure all sensitive variables use one of the keywords:

{% endblock %}