The mueval package

[Tags: bsd3, library, program]

Mueval is a Haskell interpreter. It uses the GHC API to evaluate arbitrary Haskell expressions. Importantly, mueval takes many precautions to defang and avoid evil code. It uses resource limits, whitelisted modules, special Show instances for IO, threads, changes of directory, and so on to sandbox the Haskell code. (It is much like Lambdabot's famous evaluation functionality.)

Currently there is a major hole in Mueval: it is possible use a function without importing it, which allows the module whitelisting to be bypassed, and hence, unsafePerformIO and its various type-breaking friends can be used to do arbitrary things. Mueval uses a blacklist to avoid the most naive and obvious dangerous function imports, but this is a very weak mechanism and cannot be relied upon.

Until this hole is fixed, Mueval should *not* be used on potentially hostile input.

Mueval is currently POSIX-only.


Properties

Versions0.2, 0.2.1, 0.3, 0.3.1, 0.4, 0.4.5, 0.4.6, 0.5, 0.5.1, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.7.0, 0.7.1, 0.8, 0.8.1, 0.8.2, 0.9, 0.9.1, 0.9.1.1
Dependenciesbase, directory, hint (>=0.2.2), mtl, show, unix
LicenseBSD3
AuthorGwern
MaintainerGwern <gwern0@gmail.com>
CategoryDevelopment, Language
Home pagehttp://code.haskell.org/mubot/
Executablesmueval
Upload dateThu Jun 26 15:56:41 UTC 2008
Uploaded byGwernBranwen
DistributionsDebian:0.9.1, FreeBSD:0.9, NixOS:0.9.1.1
Downloads2413 total (263 in last 30 days)

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees