Skip to content
Info disclosure Disclosed report Beginner

Django debug enabled showing information about system, database, configuration files

A Django app had debug mode on, so a request to the admin path causing a 500 error returned a detailed traceback exposing versions, database details, S3 URL, email addresses and configuration.

omarelfarsaoui Follow

Originally disclosed on HackerOne

Medium 6.1 View original
  • Fixed in 2 hours
  • Disclosed after 25 days

Summary:

Hi team, This subdomain pulpo.it.glovoint.com is a Django application running with debug mode turned on (DEBUG = True ). One of the main features of debug mode is the display of detailed error pages to help developers. If your app raises an exception when DEBUG is True, Django will display a detailed traceback, including a lot of metadata about your environment, such as all the currently defined Django settings.py file.

Steps To Reproduce:

it's not complicated and needs some user interaction, using Burpsuite I send the POST request to https://pulpo.it.glovoint.com/admin path and I got 500 response.

The information leaked includes the following: Django Version. python Version IP addresses S3_URL database (username, URL, type, port ) email addresses

Supporting Material/References:

███

Remediation:

Never deploy with DEBUG turned on. To disable debug mode, set DEBUG=False in your Django settings.py file.

Impact

An attacker can obtain information such as: Django & Python version. Used database type, database user name, and current database name. Details of the Django project configuration. Internal file paths. Exception-generated source code, local variables and their values. This information might help an attacker gain more information and potentially to focus on the development of further attacks on the target system.

The original report as published on HackerOne, by omarelfarsaoui. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application was deployed with Django's DEBUG setting set to True, so unhandled exceptions produced detailed diagnostic pages instead of generic errors.

Impact

An attacker could learn the Django and Python versions, database type, username and name, configuration details, internal file paths and exception variables, which may help plan further attacks.

What the attacker needed

Ability to send a request that triggers an error

The fix

Debug mode should be turned off in production by setting DEBUG to False in the Django settings file.

How it was found

  1. Send a POST request to the admin path of the subdomain.
  2. Observe the server return a 500 error response.
  3. Read the debug error page, which lists versions, database details, S3 URL and email addresses.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Django is a framework for building websites. It has a debug mode meant for developers that shows a long error page when something goes wrong. If that mode is left on in a live site, strangers can see private details such as database usernames and file locations just by making the site crash.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by omarelfarsaoui

View all

4 more disclosed reports, best first.

More from Glovo

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.