From the course: Secure Coding in Go

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Challenge: Securing output

Challenge: Securing output - Go Tutorial

From the course: Secure Coding in Go

Challenge: Securing output

(upbeat music) - [Instructor] Here we have code that is an HTML page that requires user and password before you can see the status. When you look at the code, you will find several security issues. Let's have a look. First, we're going to run it. So run without debugging, and we're going to view the debug console. And now first we're going to try and submit without any information. And we see that we get bad login, but we also see some of the data. And now if you're going to log in with the right users and we are going to get an XSS and then we're going to see the status, fix these security issues.

Contents