#32061: Credential leaks on dbshell crash on MySQL and Oracle.
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  3.1
  commands)                          |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"384ac0990ff414526ec47381845dae79b8e3ddfe" 384ac099]:
 {{{
 #!CommitTicketReference repository=""
 revision="384ac0990ff414526ec47381845dae79b8e3ddfe"
 Refs #32061 -- Prevented password leak on MySQL dbshell crash.

 The usage of the --password flag when invoking the mysql CLI has the
 potential of exposing the password in plain text if the command happens
 to crash due to the inclusion of args provided to
 subprocess.run(check=True) in the string representation of the
 subprocess.CalledProcessError exception raised on non-zero return code.

 Since this has the potential of leaking the password to logging
 facilities configured to capture crashes (e.g. sys.excepthook, Sentry)
 it's safer to rely on the MYSQL_PWD environment variable instead even
 if its usage is discouraged due to potential leak through the ps
 command on old flavors of Unix.

 Thanks Charlie Denton for reporting the issue to the security team.

 Refs #24999.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32061#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.b880b4d8f13a9a3c286ce6aa7204eb5a%40djangoproject.com.

Reply via email to