Re:How I learned about corporate firewalls
by shireboy on Wednesday October 05, 2022 @09:04AM
(#33095023)
Came here to point this out. For non-trivial implementations of showHtmlPage, this is a vulnerability. A malicious user could set up a 403 response with a fake “please re-enter your card to verify” form that sends to the attacker, or possibly even script to scrape the card number. Probably low risk of this actually happening in this scenario, but I’m pretty sure this fix is a bad idea. Better to show a generic error and log.
[ Parent
| on HN ]
Re:How I learned about corporate firewalls
by jve on Wednesday October 05, 2022 @09:31AM
(#33095336)
I think loading HTML within DOM Node and getting .innerText would be pretty innocent way of communicating user about some unknown error condition. Or logging that text so developer can better understand unexpected failures.