课程: Secure Coding in Go

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Overview of output issues

Overview of output issues - Go教程

课程: Secure Coding in Go

Overview of output issues

- [Instructor] Your series will emit output to users. Some of these users might not be friendly and you don't want to expose sensitive data to them. Some users review the output via a browser which means an attacker can craft output that will include malicious JavaScript. When the JavaScript code runs in the browser, it will run with the current user permission and might have access to sensitive data that is stored on the browser or on the user machine. You need to check the data that you're sending out, and if this data is consumed by a browser, you should make sure it is safe.

内容