{% extends 'introduction/base.html' %} {% block content %} {% block title %} Security Misconfiguration {% endblock %}

What is Security Misconfiguration

Security misconfiguration can happen at any level of an application stack, including the network services, platform, web server, application server, database, frameworks, custom code, and pre-installed virtual machines, containers, or storage. Automated scanners are useful for detecting misconfigurations, use of default accounts or configurations, unnecessary services, legacy options, etc.

Such flaws frequently give attackers unauthorized access to some system data or functionality. Occasionally, such flaws result in a complete system compromise. The business impact depends on the protection needs of the application and data.

This lab has a Security misconfiguration. It has a button which reveal the secret key but it is only accessible if the admin is accessing it. How to checkin as admin? Is there a cookie, OR A request header? Hint:

  • Clicking on the Secret Key button gives an error message, try using the hint to change the request.


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.
Can u trigger a 500 error and get the SENSITIVE_DATA ?


Solve lab2 before solving this.

Can you login as admin ?


For hint you can see the code in the lab page..


Security Misconfiguration

The application might be vulnerable if the application is:

{% endblock %}