News for hackers. Stuff that matters.
Re:PHPMailer Exploit – Remote Code Execution by Piskvorrr on Wednesday December 28, 2016 @06:55AM (#13269954)
That's actually a part of the problem: "don't worry, the library covers you, no need to think about it". I have spent some time rooting around inside the libraries I planned to use - including PHPMailer - to find out what their assumptions are: "validates by default" is not a sufficient description (as we see), "passes everything conformant to RFC" is.

In this case, that was not the same assumption I was making, and I was surprised - once, during implementation; a wrapper using filter_var brought the assumptions of the library in line with the assumptions for the project. That is, obviously, not universal advice.

There are no comments on this comment yet.