DeepSource
Dashboard Resources Pricing Discover Directory Log in

Run your first analysis.

Find thousands of code security and quality issues in your codebase, before they end up in production.

Start now
All analyzers Go
Go

Go

By DeepSource

Use Analyzer
Docs
Discuss
Unsafe defer of .Close method GO-S2307
Security

Calling Close() method may return an error, and ignoring the same might result in a data loss. This is similar to many more Close methods.

Audit required: Exposure of sensitive headers GO-S0901
Security

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.

Audit required: Exposure of directory listing using net/http.FileServer GO-S1034
Security

A directory listing is inappropriately exposed using net/http.FileServer, yielding potentially sensitive information to attackers.

Exposure of directory listing using Static GO-S1036
Security
Autofix

A directory listing is inappropriately exposed using github.com/gofiber/fiber/v2's Static, yielding potentially sensitive information to attackers.

Audit Required: Insecure cookie for gin sessions GO-S1044
Security

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.