Title:'s Django settings file DEBUG=True
Type: security Stage: resolved
Components: None Versions:
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: Bithin.A, eric.araujo, ezio.melotti, georg.brandl, loewis
Priority: normal Keywords:

Created on 2012-01-08 07:52 by Bithin.A, last changed 2012-01-23 21:05 by ezio.melotti. This issue is now closed.

File name Uploaded Description Edit
Screenshot at 2012-01-08 13:11:43.png Bithin.A, 2012-01-08 07:52
Messages (6)
msg150852 - (view) Author: Bithin A (Bithin.A) Date: 2012-01-08 07:52
I am getting an Django error when I was trying to review a patch. This error has occurred in the site as the DEBUG mode in the Django settings file is set to True. It is a security issue and should be set to false. I am attaching the screen shot of the error which I have come across.
msg150903 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-01-08 20:50
I disagree that this is a security issue, or an issue at all. All source code of the site is in a public subversion repository, available for review to any attacker (as well as any security review) - and that is deliberately so because we fundamentally believe in openness of source code.

I fail to see why making the traceback available would pose any additional threat. Having the traceback is lightly helpful when people actually do encounter bugs and report them.
msg150918 - (view) Author: Bithin A (Bithin.A) Date: 2012-01-09 03:29
The is a running application and it is very bad to see debug error messages.
msg151192 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2012-01-13 20:39
While the actual code may be accessible to everyone, the server configuration (paths etc. -- just look at the page; at least the session secret key and passwords are masked by Django) are not, and exposing that can be a security problem as well.  And while I agree that this possibility appears remote, just look at the current discussion about hashing attacks.  Running in debug mode also simply looks bad to just about every web programmer, which explains this bug report.

Lastly, setting DEBUG to true also has other consequences, like the possibility to "leak" memory for long-running processes, as explained here:
msg151216 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-01-14 03:45
(FWIW this tracker is used for what is distributed as CPython, please use the metatracker (link on the left “Report Tracker Problem”) for future reports.  Thanks)
msg151842 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012-01-23 21:05
I now set DEBUG = False in gae2django/ and rietveld/
Date User Action Args
2012-01-23 21:05:04ezio.melottisetstatus: open -> closed

nosy: + ezio.melotti
messages: + msg151842

resolution: fixed
stage: resolved
2012-01-14 03:45:03eric.araujosetnosy: + eric.araujo
messages: + msg151216
2012-01-13 20:39:32georg.brandlsetnosy: + georg.brandl
messages: + msg151192
2012-01-09 03:29:38Bithin.Asetmessages: + msg150918
2012-01-08 20:50:43loewissetpriority: high -> normal

messages: + msg150903
2012-01-08 10:14:57georg.brandlsetpriority: normal -> high
assignee: loewis

nosy: + loewis
title:'s Django settings file DEBUG=True ->'s Django settings file DEBUG=True
2012-01-08 07:52:06Bithin.Acreate