
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
github.com/sudachi0114/go-mvc
お勉強プロジェクトです。Go で (とても簡単な) webアプリケーションを作ります。 MVCフレームワークに則ったものにします。CRUD処理ができるようにします。
勉強したいこと
(余裕があれば API 化とかしたい。 あと、テストとかも勉強したいので組み込みたい。)
go get github.com/wcl48/valval # UserModel のバリデーションのため
go get github.com/jinzhu/gorm # Go ORM ライブラリ (DB とのやりとり用)
go get github.com/mattn/go-sqlite3 # Go で DB とやり取りする時のドライバ
注意: gorm を用いて DB に接続する際、必ずドライバも import する ようにする。
import (
"github.com/jinzhu/gorm" // gorm
_ "github.com/mattn/go-sqlite3" // gorm で使うドライバもインポートしないとエラーになる (この場合、sqlite3 のドライバを import )
)
func main() {
db, err := gorm.Open("DBMS", "Connection")
if err != nil {
...
}
go run main.go
go run db/migrate.go
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.