Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible vulnerability using TH to run arbitrary IO #1

Open
snoyberg opened this issue Apr 11, 2013 · 2 comments
Open

Possible vulnerability using TH to run arbitrary IO #1

snoyberg opened this issue Apr 11, 2013 · 2 comments

Comments

@snoyberg
Copy link

http://core.alpmestan.com/46

{-# LANGUAGE TemplateHaskell #-}
import Language.Haskell.TH.Syntax

main = $(qRunIO (readFile "/etc/passwd") >>= error)
@alpmestan
Copy link
Owner

I know, I'm actually working on a solution for that (remember the Google+ discussion). The website hasn't been published so I'm doing this as time permits. Probably going to use something à-la isolate.c (cf g+ post).

@alpmestan
Copy link
Owner

(for reference:) I just saw the website actually had been published, "behind my back". It's not not referenced from reddit anymore. I'm going to write the isolation part in the upcoming days and probably make it public after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants