The person reporting the error, of course.
http://www.smh.com.au/it-pro/security-it/super-bad-first-sta...
In this particular case with Bank of America, a user did nothing out of the ordinary to expose information and reported it proper.
Just my 2 cents.
The sad state of affairs is that a lot of companies are more interested in security via cheap obscurity, and will gladly go after the person who dared to publicize their security holes.