Bug 101052 - smb printer - ps shows clear passwd
Summary: smb printer - ps shows clear passwd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
: 111771 113349 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-28 20:13 UTC by Terry Davis
Modified: 2007-11-30 22:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-05-12 08:58:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Terry Davis 2003-07-28 20:13:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030516
Mozilla Firebird/0.6

Description of problem:
If you set up an SMB printer using the GUI (i did), you can see the clear text
password in the process list:

[user@machine user]$ ps xauwww | grep smb
root      3027  0.0  0.3  4516 1736 ?        S    14:57   0:00
smb://user:password@DOMAIN/machine/HP-108 17 user (stdin) 1 cpi=12 lpi=7
page-bottom=36 page-left=36 page-right=36 page-top=36 scaling=100 wrap

Version-Release number of selected component (if applicable):
redhat-config-printer-0.6.47.9-1

How reproducible:
Always

Steps to Reproduce:
1. Setup smb printer
2. ps xauwww | grep smb
3. View the password
    

Actual Results:  You can see the password

Expected Results:  Password should be ********

Additional info:

Comment 1 Tim Waugh 2004-01-13 08:57:13 UTC
*** Bug 113349 has been marked as a duplicate of this bug. ***

Comment 2 Doncho Gunchev 2004-05-30 00:25:49 UTC
Using CUPS'w web interface you can see the password looking at the
priter's details also (RH9 at least).

Comment 3 Josh Bressers 2004-06-18 21:54:43 UTC
*** Bug 111771 has been marked as a duplicate of this bug. ***

Comment 4 Nicholas Miell 2005-05-12 07:31:08 UTC
smbspool can take a device URI three ways: in argv[0], in argv[1], or in the
DEVICE_URI environment variable.

Using DEVICE_URI instead of passing it on the command line should hide sensitive
information from all uses.

Comment 5 Tim Waugh 2005-05-12 08:58:14 UTC
Not only that, but it *must* use DEVICE_URI since cups now masks the
authentication details out from the URI it passes as argv[0].

This has been the case for a couple of releases now, I'm sure.


Note You need to log in before you can comment on or make changes to this bug.