First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 94172
Alias:
Product:
Component:
Status: RESOLVED
Resolution: INVALID
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Romang <zataz@zataz.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
  ()
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 94172 depends on: Show dependency tree
Bug 94172 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-27 05:43 0000
Hello,

In contrib/scripts/linki.py

95 def czyjest ():
96     if os.path.exists('/tmp/rmrmg_ekg_url'):
97         wejsc= open ('/tmp/rmrmg_ekg_url')
98         file = wejsc.readlines()
99         dlug=len(file)
100         wejsc.close()
101         #ekg.printf("generic", "liczno

------- Comment #1 From Romang 2005-05-27 05:43:40 0000 -------
Hello,

In contrib/scripts/linki.py

95 def czyjest ():
96     if os.path.exists('/tmp/rmrmg_ekg_url'):
97         wejsc= open ('/tmp/rmrmg_ekg_url')
98         file = wejsc.readlines()
99         dlug=len(file)
100         wejsc.close()
101         #ekg.printf("generic", "liczno¶æ %d" %(dlug))
102         return file
103     else:
104         return 0

Then :

35 def handle_keypress(meta, key):
36     if key == 269:
37         ekg.printf("generic", "wci¶nieto F5")
38         nurl=czyjest()
39         if nurl == 0:
40             ekg.printf("generic", "nie ma zadnego adresu URL")
41         else:
42             dlug=len(nurl)
43             if dlug == 1:
44                 ekg.printf("generic", "otwieram %s w nowej zak³adce" %(nurl[0]))
45                 os.system("MozillaFirebird -remote 'openURL(%s, new-tab)'" %(nurl[0]))
46                 os.system('rm /tmp/rmrmg_ekg_url')
47             else:
48                 ekg.printf("generic", "linków mam %d" %(dlug))
49                 wielejest(nurl)
50                 ekg.printf("generic", "otwieram %s w nowej zak³adce" %(nurl[0]))
51                 os.system("MozillaFirebird -remote 'openURL(%s, new-tab)'" %(nurl[0]))
52     elif key == 270:
53         ekg.printf("generic", "wcisniêto F6")
54         nurl=czyjest()
55         if nurl == 0:
56             ekg.printf("generic", "nic nie moge skasowaæ - nie ma zadnego adresu URL")
57         else:
58             dlug=len(nurl)
59             if dlug == 1:
60                 ekg.printf("generic", "kasuje adres %s" %(nurl[0]))
61                 os.system('rm /tmp/rmrmg_ekg_url')
62             else:
63                 ekg.printf("generic", "jest wiele linków")
64                 wielejest(nurl)
65                 ekg.printf("generic", "kasuje pierwszy czyli:  %s" %(nurl[0]))
66     elif key == 271:
67         ekg.printf("generic", "wcisniêto F7")
68         nurl=czyjest()
69         if nurl == 0:
70             ekg.printf("generic", "nie ma zadnego adresu URL")
71         else:
72             dlug=len(nurl)
73             if dlug == 1:
74                 ekg.printf("generic", "otwieram %s w nowym oknie" %(nurl[0]))
75                 os.system("MozillaFirebird %s" %(nurl[0]))
76                 os.system('rm /tmp/rmrmg_ekg_url')
77             else:
78                 ekg.printf("generic", "linków mam %d" %(dlug))
79                 wielejest(nurl)
80                 ekg.printf("generic", "otwieram %s w nowym oknie" %(nurl[0]))
81     elif key == 272:
82         ekg.printf("generic", "wcisniêto F8")
83         nurl=czyjest()
84         ekg.printf("generic", "F5 - otwiera w nowej zak³adce; F7 w nowym oknie, a F6 kasuje, w        szystko tyczy siê pierwszej pozycji z listy")
85         if nurl == 0:
86             ekg.printf("generic", "nie ma zadnego adresu URL")
87         else:
88             dlug=len(nurl)
89             ekg.printf("generic", "linków mam %d oto one:" %(dlug))
90             for po in nurl:
91                 ekg.printf("generic", "%s" %(po))
92     return 1

--------------------------------------------------

I think there is possible to TOCTOU or as taviso say maybe arbitrary command execution

Regards.

------- Comment #2 From rob holland (RETIRED) 2005-05-27 06:08:08 0000 -------
arbitary command execution by spiking that file. The lines read from that file
should be filtered before being passed to system.

------- Comment #3 From Romang 2005-05-30 23:55:43 0000 -------
Hello,

I contact the upstream to notify him the vulnerability.

Any body has a patch ? /me not good python developper.

Regards.

------- Comment #4 From Sune Kloppenborg Jeppesen 2005-06-04 00:45:54 0000 -------
Romang any news from upstream? 

------- Comment #5 From Romang 2005-06-06 01:50:39 0000 -------
Hello,

Actualy no vendor response.

We should wait a little more.

Regards.

------- Comment #6 From Romang 2005-06-09 01:06:03 0000 -------
No response from vendor

------- Comment #7 From Thierry Carrez (RETIRED) 2005-06-10 07:50:20 0000 -------
auditors: feel like designing a Python patch for this ?

------- Comment #8 From Thierry Carrez (RETIRED) 2005-06-24 05:59:16 0000 -------
Pulling in the maintainer.
spock: feel like designing a patch for this ?

------- Comment #9 From Michal Januszewski 2005-06-24 06:32:27 0000 -------
Are you aware of the fact that contrib/scripts/linki.py isn't even installed on
Gentoo systems?

------- Comment #10 From Thierry Carrez (RETIRED) 2005-06-24 07:07:23 0000 -------
heh, excellent :)

Closing as INVALID
Eric: if you disagree, feel free to reopen this one :)

------- Comment #11 From Romang 2005-06-27 00:42:35 0000 -------
Hello,

Ok for invalid on gentoo, but this software is still containing a sleeping
security holes. So we can hope that maintainer neither forget to don't use
this contrib file in 6 month.

Regards.

First Last Prev Next    No search results available      Search page      Enter new bug