|
|
|
|
|
by aban
3465 days ago
|
|
I wrote a long reply, but ended up erasing it and I'll just say that many of these vulnerabilities are due to the programmer using one type (i.e. string) to represent all kinds of data that might be malicious and unsanitized, and then losing track of whether a piece of data is safe for use (e.g. to be sent to DB) or not. I recommend checking out the Yesod web framework [0], which leverages Haskell's strong type system to provide type-safety and a whole range of nice guarantees, including preventing vulnerabilities like the ones you mentioned. Spock [1] is another cool web framework also written in Haskell that looks quite promising. [0]: http://www.yesodweb.com/page/about [1]: https://www.spock.li |
|