[SECURITY] Dangerous control characters allowed in Bugzilla text
Originally disclosed on Mozilla
- Fixed in 2 months
- Paid in 19 days
- Disclosed after 2 months
Bugzilla, currently, does not block control characters from being entered in code blocks.
Since it's a bug tracking website, we will have people passing around bash scripts. And code to be entered into an editor.
Now, just take a look at the following bash script:
#Creative Commons Attribution-ShareAlike / Author Manishearth
echo something
#Do more things
It looks pretty harmless.
If you copy paste it into an editor (do NOT copy paste it into the terminal), it will run `rm -r /`, as the first line, while it *looks* like an innocuous comment, is really one of the easiest ways to lose most of your data on a Linux system. (This works on Windows too, though the exact implementation would be different)
This works because the first line contains a lot of ^H characters that mask the real meaning of the
While I don't have a testcase for it, this would work for Vim too. Many users here use Vim, and using a combination of the ESC (^[) character, one could theoretically execute some shell command (using the Vim command `:!` to run shell commands). This can again be hidden away in a larger comment or line of code using ^H.
There is a case for fixing this in the browser itself. I am filing separate bugs for that.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A low-severity security bug in User Interface. Mozilla made it public on 17 April 2014.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.