password visible

Bug #38631 reported by Sergio Uribe
4
Affects Status Importance Assigned to Milestone
gmail-notify (Ubuntu)
Fix Released
High
MOTU

Bug Description

the username and password of the gmail account is accesible in plain text at the user/.notifier.conf

description: updated
Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 38631] password visible

Please post the output of:

ls -al ~/.notifier.conf

Revision history for this message
Sergio Uribe (sergiouribe) wrote : Re: [Bug 38631] Re: [Bug 38631] password visible

-rw-r--r-- 1 sergio sergio 186 2006-02-28
14:49 /home/sergio/.notifier.conf

El sáb, 08-04-2006 a las 00:08 +0000, Dennis Kaarsemaker escribió:
> Please post the output of:
>
> ls -al ~/.notifier.conf
>

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 38631] Re: [Bug 38631] Re: [Bug 38631] password visible

Setting to major since this is a security issue

 severity Major

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Fairy trivial patch:

--- gmail-notify-1.6.1/GmailConfig.py 2005-09-25 19:12:11.000000000 +0200
+++ gmail-notify-1.6.1.new/GmailConfig.py 2006-04-08 23:36:53.000000000 +0200
@@ -237,7 +237,10 @@
                                self.config.remove_option( "options", "gmailusername" )
                                self.config.remove_option( "options", "gmailpassword" )

- self.config.write( open( self.loadedConfig, 'w' ) )
+ fd = open( self.loadedConfig, 'w' )
+ os.chmod( self.loadedConfig, 0600)
+ self.config.write( fd )
+ fd.close()
                        gtk.main_quit()
                        self.hide()
                else:

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

(ok, malone still sucks ;))

Changed in gmail-notify:
assignee: nobody → motu
status: Unconfirmed → Confirmed
Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Corected patch

This patch is better - but people who use tabs in python should be larted...

Revision history for this message
Chuck Short (zulcss) wrote :

Added patch and uploaded. Thanks.

Changed in gmail-notify:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.