We’re building a web form which will allow (trusted) users to input their own R queries. They will be doing stats analysis against a database.
Questions:
- How dangerous is this, in its basic form? I’m new to R, so – what’s the worst they could do? (Assume the database connection is unprivileged).
- Is there an easy way to sanitise the input, to remove the biggest risks?
- Is it possible to sanitise inputs to the point that we could open this up to the public? We couldn’t risk DOS attacks, for instance.
Combining comments above, plus messages from the mailing list thread pointed to by Josh O’Brien.
system()function.