The rules are simple. This is a TRUE or FALSE quiz, where TRUE = TREAT and FALSE = TRICK.
NoSQL technologies can be vulnerable to Injection vulnerabilities.
Running my web application server as the root user is fine if its just hosting static content.
FALSE - Running a web server as a root user is never a good idea, any successful attack against the server could be leveraged for further attacks within your network.
The HTTP TRACE method can lead to information disclosure.
TRUE - The HTTP TRACE (and TRACK) method is used for debugging and reflects the input back to the requesting user. If this method is enabled on an application server it could be abused in some scenarios to steal user credentials. Whilst its not really used anymore by modern applications and server, users should ensure that their web server's are not accepting this method.
JWT bearer tokens are more secure than session cookies.
FALSE - JSON Web Token does not have any security based advantage over cookie based sessions. JWTs provide a means of maintaining session state on the client instead of doing it on the server. JWT's are just like session cookies and are as secure as the web developer who implemented them.
Adding the "X-XSS-Protection" header to the HTTP headers returned by my web server will protect me from XSS attacks.
FALSE - the X-XSS-Protection header is no longer supported by modern browsers and can no longer be relied on to fully protect against XSS attacks. When it was supported a number of bypass’s were possible. Prevention of cross-site scripting involves a defence in depth approach which will employ the use input and output encoding and a robust CSP policy.