Article:
 |
|
Build a Dashboard Widget
|
| Subject: |
|
Isn't that a bit dangerous? |
| Date: |
|
2005-05-07 01:55:30 |
| From: |
|
KerryB
|
|
|
var commandLine =
"groff -mandoc -Tascii -P-b -P-c `man -w " +
document.getElementById('programName').value + "`| cat ";
I realise this isn't production code, and I may be missing something, but what happens if the user types something like foo;rm -rf $HOME into the command field?
|
Showing messages 1 through 4 of 4.
-
Isn't that a bit dangerous?
2005-05-09 09:32:39
heyotwell
[View]
-
Isn't that a bit dangerous?
2005-05-07 04:57:55
SanjayW
[View]
-
Isn't that a bit dangerous?
2005-05-07 12:59:27
KerryB
[View]
More importantly, what prevents a *widget* from simply running that code on its own?