.Close
method GO-S2307Calling Close()
method may return an error, and ignoring the same
might result in a data loss. This is similar to many more Close
methods.
Use of headers like "Server", "X-Powered-By" and "X-AspNet-Version" can leak sensitive information of your application and server. If not necessary, usage of these headers should be avoided.
net/http.FileServer
GO-S1034A directory listing is inappropriately exposed using net/http.FileServer
,
yielding potentially sensitive information to attackers.
Static
GO-S1036A directory listing is inappropriately exposed using
github.com/gofiber/fiber/v2
's Static
, yielding potentially sensitive
information to attackers.
A secure cookie instructs the browser not to send the cookie in insecure contexts such as while using HTTP. This prevents session stealing via a MITM attack.