Logger creates files/directories when it shouldn't

Bug #343790 reported by Jonathan Hitchcock
256
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
High
Michael Gorven

Bug Description

Certain circumstances seem to trigger strange behaviour concerning which files ibid logs to:

drwxr-sr-x 3 mgorven spinach 4096 2009-03-11 11:29 atrum.Z:lined (Your IP address has been banned from Atrum. Please see http:
-rw-r--r-- 1 mgorven spinach 51 2009-03-05 21:13 freenode."Changing server".2009.03.log
drwxr-sr-x 2 mgorven spinach 4096 2009-03-04 17:38 freenode."ChatZilla 0.9.84 [Firefox 3.0.6
drwxr-sr-x 2 mgorven spinach 4096 2009-03-05 18:08 freenode."ChatZilla 0.9.84 [Firefox 3.0.7

The first, third and fourth are directories, the creation of which is obviously caused by the '/' character appearing in the quit message, but why are quit messages causing entirely new log files to be created? Quit messages should be logged in channel logfiles, but they are not:

-rw-rw-r-- 1 spinach spinach 122 2009-02-26 09:42 atrum.User Quit: silentcoder.2009.02.log
-rw-r--r-- 1 mgorven spinach 49 2009-02-24 13:15 atrum.User Quit: Tangled up Tubes!.2009.02.log
-rw-rw-r-- 1 spinach spinach 1127 2009-02-25 17:18 atrum.User Quit: This computer has gone to sleep.2009.02.log
-rw-r--r-- 1 mgorven spinach 47 2009-03-16 11:33 atrum.Killed (uct.cpt.za.atrum.org (Nick Collision)).2009.03.log
-rw-r--r-- 1 mgorven spinach 59 2009-03-09 11:25 atrum.NickServ (GHOST command used by confluence_).2009.03.log

Furthermore, there is a problem logging jabber users, when there is a resource involved. It's similar to the above, in that a '/' character causes a directory to be created:

drwxrwsr-x 2 spinach spinach 4096 2009-02-05 10:13 <email address hidden>

-rw-rw-r-- 1 spinach spinach 360 2009-02-05 11:04 <email address hidden>/incus.2009.02.log
-rw-rw-r-- 1 spinach spinach 1598 2009-02-05 11:04 <email address hidden>/molech.2009.02.log

Tags: logging

Related branches

Revision history for this message
Jonathan Hitchcock (vhata) wrote :

I could probably cause arbitrary files to be created/overwritten by changing my quit message...

Revision history for this message
Michael Gorven (mgorven) wrote : Re: [Bug 343790] [NEW] Logger creates files/directories when it shouldn't

The Jabber resource bug is already fixed -- those are just old log files.
 status inprogress
 assignee mgorven
 importance high

Changed in ibid:
assignee: nobody → mgorven
importance: Undecided → High
status: New → In Progress
Michael Gorven (mgorven)
Changed in ibid:
milestone: none → 0.1
Revision history for this message
Michael Gorven (mgorven) wrote :

 status fixreleased

Changed in ibid:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

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