Re: Security concerns when compiling gnuplot online

Dave Horsfall <[email protected]> Tue, 5 Dec 2023 15:28:27 +1100 (EST)
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
On Tue, 5 Dec 2023, Rami Boutassghount wrote:

[...]

> These commands are
> not_allowed = ["set terminal", "set output", "gpval_", "cd ", "system "]
> 
> *Is there anything else that I should consider?*

This suggests that you should consider reversing the test i.e. allow the 
ones deemed to be safe and block the rest by default ("fail safe"); this 
is what good firewalls do, as you are protected from future (and unsafe) 
additions.

Of course, you'll have to extend the list where necessary, but you'll have 
to do that with future unsafe commands anyway.

-- Dave


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info