vulnerability: rewrite arbitrary user file

Bug #607297 reported by Vasily Kulikov
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tesseract (Debian)
Fix Released
Unknown
tesseract (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Hi, I've just discovered that tesseract-ocr is vulnerable to rewriting any user file:

DEBUG_WIN::DEBUG_WIN( //constructor
...
  length +=
    sprintf (command + length,
    "\"stty opost; tty >/tmp/debug%d; while [ -s /tmp/debug%d ]\ndo\nsleep 1\ndone\" &\n",
    pid, pid);

Here attacker can create link to any file in the system that user may write to. The only he has to know - the pid of process. As it is (last PID + 1) by default, it is not difficult to guess.

Thanks.

Revision history for this message
Kees Cook (kees) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better.

The latest release of Ubuntu is not vulnerable to symlink race attacks, but earlier releases will need fixing. https://wiki.ubuntu.com/Security/Features#symlink

Since the package referred to in this bug is in universe or multiverse, it is community maintained. If you are able, I suggest posting a debdiff for this issue. When a debdiff is available, members of the security team will review it and publish the package. See the following link for more information: https://wiki.ubuntu.com/SecurityTeam/UpdateProcedures

Changed in tesseract (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
visibility: private → public
Changed in tesseract (Debian):
status: Unknown → New
Changed in tesseract (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tesseract - 2.04-2.1

---------------
tesseract (2.04-2.1) unstable; urgency=low

  * Non-maintainer upload.
  * Bump build-dependency on quilt to >= 0.46-7~.
  * Disable xterm-based debug windows (closes: #612032, LP: #607297). Thanks
    to Kees Cook for the bug report.
 -- Bhavani Shankar <email address hidden> Thu, 10 Feb 2011 16:35:45 +0100

Changed in tesseract (Ubuntu):
status: Confirmed → 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.