compiz-fusion-plugins-extra includes a "crash handler" plugin

Bug #835525 reported by David
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compiz-plugins-extra (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

compiz-fusion-plugins-extra includes a "crash handler" plugin - the source of this program can be found at src/crashhandler/crashhandler.c. In the source file the function crash_handler() - executes some debugging commands after compiz crashes (I sent it a SIGABRT as a test :) ) it performs some debugging before dumping the output to /tmp/gdb.tmp (which gets deleted) and placed into the configured crash directory (which by default is /tmp). In both cases the program does not verify if the files already exist or a symbolic links.
Note: A user would need to have the compiz-fusion-plugins-extra installed and enable the crash-handler plugin.

The vulnerable code is the following:
        // backtrace
        char cmd[1024];

        snprintf (cmd, 1024,
                  "echo -e \"set prompt\nthread apply all bt full\n"
                  "echo \\\\\\n\necho \\\\\\n\nbt\nquit\" > /tmp/gdb.tmp;"
                  "gdb -q %s %i < /tmp/gdb.tmp | "
                  "grep -v \"No symbol table\" | "
                  "tee %s/compiz_crash-%i.out; rm -f /tmp/gdb.tmp; "
                  "echo \"\n[CRASH_HANDLER]: "
                  "\\\"%s/compiz_crash-%i.out\\\" created!\n\"",
                 programName, getpid (), crashhandlerGetDirectory (cDisplay),
                 getpid (), crashhandlerGetDirectory (cDisplay), getpid () );

        system (cmd);

Revision history for this message
David (d--) wrote :

Ooops I totally forgot to set the package from the one I was browsing on ... :/

affects: apparmor-profiles → compiz-plugins-extra (Ubuntu)
Revision history for this message
David (d--) wrote :

This might not be considered a security bug (as it is a "debug mode").

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Symlink restriction in Natty and higher will likely prevent this from being a security issue.

visibility: private → public
Changed in compiz-plugins-extra (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
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.