vulnerability: rewrite arbitrary user file
Bug #607297 reported by
Vasily Kulikov
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:
...
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.
Changed in tesseract (Debian): | |
status: | Unknown → New |
Changed in tesseract (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
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/SecurityTea m/UpdateProcedu res