课程: Programming Foundations: Web Security
今天就学习课程吧!
今天就开通帐号,24,600 门业界名师课程任您挑!
Sanitize data
- When regulating requests and validating input, unacceptable data is rejected or ignored. That does not mean that the data that passes our validations is safe. It just means that it was not obviously unacceptable. Data that's allowed into your application must still be sanitized to make sure it's harmless. Sanitization is a lot like the decontamination tents that sometimes appear in TV shows and movies. The characters go off in dangerous territory where there may be disease, radiation, or unknown threats. When they return to safety, they must first pass through a special tent for a shower and a thorough scrubbing. In the 1983 film "Silkwood," four times, characters in a nuclear facility are exposed to radiation and must submit to a brutal decontamination process. After the film came out, it became known as a "Silkwood" shower. Sanitizing data is one of the most important steps to secure web application. Easiest and most…