Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

fix(hooks): security guard misses raw SQL built on an earlier line or across lines

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
devtools, security

Direzione di ricerca

Read the hook implementation that checks added lines and its existing tests; the payload does not name their paths. Trace how it analyzes added blocks and calls to FromSqlRaw, ExecuteSqlRaw, and SqlQueryRaw, then run the hook tests. Done means both multiline call shapes and interpolated, concatenated, or formatted string variables are flagged, with large file checks staying under the 10 second timeout.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug hooks

What

The security guard checks each added line on its own, so var sql = $"... {id}"; db.Database.ExecuteSqlRaw(sql); and a FromSqlRaw( call split over several lines pass without a warning.

Why

Raw SQL built from strings is the guard's most valuable .NET rule, and both shapes are common.

Acceptance criteria

  • A string variable built with interpolation, concatenation or string.Format and later passed to FromSqlRaw, ExecuteSqlRaw or SqlQueryRaw in the same added block is flagged.
  • A call whose argument starts on the next line is flagged.
  • The hook still finishes well under its 10 s timeout on large files, with tests for both shapes.
Lingua principale
JavaScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di devmaxxx/stackwise

Tutte le issue di devmaxxx/stackwise

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.