In Lynch's case, he's fantastically unlikely to get into anything more than PR trouble over telling people about an XSS bug. But people have gotten into real trouble over what they thought was benign investigation.
Web developers put a lot of effort into making web apps feel like they're running on your own computer, but under the law, when you click around on a web app, you are interacting with someone else's property.
You should be extremely cautious testing other people's sites for security vulnerabilities.
Obviously, he didn't commit any fraud or steal any information, and I can't imagine anyone would want to prosecute him.
edit: it looks like he's probably relatively in the clear on this? Most of the laws seem to require intent, fraud, or thievery. It's all very confusing.
edit 2: downvotes? I'm sorry for worrying that our laws and legal system sucks?
What I did was provide input to a publicly accessible script on their server. I didn't have to "break in" to anything to do so, or to find out about it. So it'd hinge on whether or not using someone's website in a way they didn't intend you to counts as being "unauthorized access".
Standard case of "most persuasive lawyer wins".
I say that in a spirit of helpfulness, not snark.
(I think it's a very neat hack and that he shouldn't have to be worried, but... am I right? Is this in fact a felony? Less?)