Vai al contenuto
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
noorqureshi/code-review-goWeb e bug bounty

code-review-go

⁨Security review of Go code — dangerous sinks and web-framework pitfalls. Load when reviewing a Go codebase/PR, on .go source in scope, or "review this Go". Signals: go.mod, net/http, os/exec, text/template, database/sql, gin/echo/fiber.⁩

v2026.10.14-ee0e0c53 installazioni+3 in 7 giorni27 StelleMITsincronizzato 23 ore fa

Installa

Non hai ancora la CLI di NotHoly? Installala prima.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/code-review-go

Scrive in ⁦~/.notholy/skills⁩ dopo aver controllato la firma e lo SHA-256.

FirmaFirmato, ed25519
cQ9ZOau1pv…p7nKRZDA==La CLI controlla lo SHA-256 e la firma prima di scrivere qualsiasi file.
Pacchetto93ec4d89…18925e61
93ec4d89c19b…93cc18925e611 file · ⁦1.6 KB⁩
ScansioneBassonessuna segnalazione
La scansione non ha trovato nulla da segnalare in questa versione.Vedi la scansione completa
Sorgentegithub.com/NoorQureshi/security-skills/tree/main/skills/code-review/code-review-go@ee0e0c5

Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.

When it applies

Reviewing Go source (an API, a CLI, a microservice). Go is memory-safe, so the bugs are logic and injection: command exec, the wrong template package, string-built SQL, and path/SSRF handling.

Why it works

Go's stdlib gives a safe and an unsafe option side by side (html/template vs text/template; parameterised db.Query(?, x) vs fmt.Sprintf into a query). Reviews find code that reached for the unsafe one, or that shells out with sh -c.

Sinks & patterns (grep, then trace to user input)

  • Command exec: exec.Command("sh","-c", …) / exec.CommandContext with concatenated input (safe form passes args separately — flag the sh -c variant).
  • XSS: text/template used to render HTML (no auto-escaping); manual w.Write([]byte(userHTML)).
  • SQLi: fmt.Sprintf/string concat into db.Query/db.Exec instead of placeholders.
  • Path traversal: filepath.Join(base, userInput) without filepath.Clean + prefix check; http.ServeFile with user paths.
  • SSRF: http.Get/http.NewRequest on user-supplied URLs; missing host allowlist.
  • Other: text/template/html/template injection from user-controlled template strings, unvalidated Unmarshal into structs (mass assignment), unsafe pointer use, weak math/rand for tokens (use crypto/rand).

Framework specifics

  • gin/echo/fiber: c.Param/c.Query/c.Bind sources; check bound structs for mass assignment and missing auth middleware on state-changing routes.
  • Templates: confirm html/template (not text/template) for anything rendered to a browser.

Method

  1. Run gosec and govulncheck for a first pass; treat as leads, not verdicts.
  2. rg 'exec.Command|text/template|Sprintf.*Query|filepath.Join' and trace to request input.
  3. Check auth/authorization middleware coverage on each route group.
  4. Confirm exploitable classes with the matching runtime skill.

Gotchas

  • exec.Command(name, arg1, arg2) (no shell) is safe — only the sh -c "...user..." form injects.
  • html/template context-escapes; the bug is usually using text/template by mistake.
  • Errors ignored with _ can hide security-relevant failures (e.g. an auth check's error).

References

Go security best practices; gosec rule set; OWASP Go SCP; govulncheck (known-vuln deps).

File di questa versione

Permessi

PermessoDichiaratoTrovato dalla scansione
Legge fileNoNo
Scrive fileSìSì
Esegue comandi shellNoNo
Usa la reteNoNo
Usa i connettoriNoNo
Controlla un browserNoNo

Segnalazioni della scansione

Rivisto il 13 nov 2026

La scansione non ha trovato nulla da segnalare in questa versione.

Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.

VersionePubblicataCommitSHA-256FirmaCambio di permessi
v2026.10.14-ee0e0c513 nov 2026ee0e0c593ec4d89Firmata–

Chiedi tutto quello che il tuo perimetro consente.

Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.

  1. 1/3

    Crea l'account

    Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.

    PrivatoAzienda
  2. 2/3

    Aggiungi crediti

    Con carta. Paghi a token, senza abbonamento.

    $5.00ricarica minima
  3. 3/3

    Chiedi

    In chat, oppure installa la CLI ed esegui notholy login nel terminale.

    $ notholy login