Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to store credit card and pricing information in ViewState even over ssl?

I have a page with private properties that are storing a credit card object and a shopping cart object in viewstate so I can maintain a reference to them across postbacks. By the way, the page involved will be using SSL.

Is this safe?

like image 563
Mike Avatar asked Jul 07 '10 22:07

Mike


1 Answers

I wouldn't store sensitive information in viewstate ... ever. By doing so, you are delegating security to the implementation of the browser for protecting your customers' data. Vulnerabilities like cross-site scripting (XSS), URL-redirection attacks, and so on could expose this sensitive data to intrusion, theft, or spoofing.

If you are storing such details across postbacks, you should re-evaluate your design - and find a way to avoid doing so.

like image 186
LBushkin Avatar answered Sep 20 '22 19:09

LBushkin