
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/sheng/cameron
An avatar generator for Go.
Fun fact: this project is named after James Cameron, the director of Avatar.
To use this project programmatically, go get
it:
go get github.com/aofei/cameron
Create a file named cameron.go
:
package main
import (
"image/png"
"net/http"
"github.com/aofei/cameron"
)
func main() {
http.ListenAndServe("localhost:8080", http.HandlerFunc(identicon))
}
func identicon(rw http.ResponseWriter, req *http.Request) {
img := cameron.Identicon([]byte(req.RequestURI), 70)
rw.Header().Set("Content-Type", "image/png")
png.Encode(rw, img)
}
Then run it:
go run cameron.go
Finally, visit http://localhost:8080
with different paths.
If you have any questions or ideas about this project, feel free to discuss them here.
If you would like to contribute to this project, please submit issues here or pull requests here.
When submitting a pull request, please make sure its commit messages adhere to Conventional Commits 1.0.0.
This project is licensed under the MIT License.
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.