From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.bugs Subject: bug#8427: [SECURITY] sql.el -- comint process passwords are leaked to ps(1) listing Date: Tue, 05 Apr 2011 14:27:03 +0300 Message-ID: <87fwpxdjlk.fsf@blue.sea.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302003457 3713 80.91.229.12 (5 Apr 2011 11:37:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2011 11:37:37 +0000 (UTC) To: 8427@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 05 13:37:33 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q74Zg-000655-R3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Apr 2011 13:37:33 +0200 Original-Received: from localhost ([127.0.0.1]:56840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q74Zg-0001Bf-0Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Apr 2011 07:37:32 -0400 Original-Received: from [140.186.70.92] (port=51571 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q74ZU-0001Ar-UO for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2011 07:37:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q74ZP-0002ZP-Vd for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2011 07:37:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q74ZP-0002Z9-To for bug-gnu-emacs@gnu.org; Tue, 05 Apr 2011 07:37:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q74QT-00063b-RD; Tue, 05 Apr 2011 07:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jari Aalto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Apr 2011 11:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8427 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130200283623227 (code B ref -1); Tue, 05 Apr 2011 11:28:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Apr 2011 11:27:16 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q74Pk-00062a-1g for submit@debbugs.gnu.org; Tue, 05 Apr 2011 07:27:16 -0400 Original-Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q74Ph-00062M-6s for submit@debbugs.gnu.org; Tue, 05 Apr 2011 07:27:14 -0400 Original-Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh03-2.mail.saunalahti.fi (Postfix) with SMTP id 49ED2EBD05 for ; Tue, 5 Apr 2011 14:27:05 +0300 (EEST) Original-Received: from emh03.mail.saunalahti.fi ([62.142.5.109]) by vs3-12.mail.saunalahti.fi ([62.142.5.96]) with SMTP (gateway) id A046692F249; Tue, 05 Apr 2011 14:27:05 +0300 Original-Received: from cante.net (a91-155-187-216.elisa-laajakaista.fi [91.155.187.216]) by emh03.mail.saunalahti.fi (Postfix) with ESMTP id 20861158A65 for ; Tue, 5 Apr 2011 14:27:03 +0300 (EEST) Mail-Copies-To: poster X-Antivirus: VAMS X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 05 Apr 2011 07:28:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45638 Archived-At: Package: emacs Version: 23.2+1-7 Severity: serious Tags: security There is a big security problem with sql.el: M-x sql-mysql At command line, anyone in multi-user environment can dig out the passwords: $ ps -ef -o user,pid,args | grep mysql # ps(1) under SUN/Solaris foo 9599 /usr/local/bin/mysql --user=foo --password=123456 --host=db.example.com bar 3732 /usr/local/bin/mysql --user=bar --password=abcdef --host=db.example.com Jari P.S mysql(1) mentions that you can set database options in ~/.my.cnf file. MySQL case, there is in manual page: -- System Information Debian Release: wheezy/sid APT Prefers testing APT policy: (990, testing) (500, unstable) (1, experimental) Architecture: amd64 Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux Locale: LANG=en_US.UTF-8, LC_ALL= -- Versions of packages `emacs depends on'. Depends: emacs23 23.2+1-7 GNU Emacs is the extensible self-documenting emacs23-lucid 23.2+1-7 GNU Emacs is the extensible self-documenting emacs23-nox 23.2+1-7 GNU Emacs is the extensible self-documenting