
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/latonaio/golang-pdf-library
以下をソースとしてpdfを生成する。
※各ファイル名はパラメータで変更可能
サンプル実行用パラメータ
s{
"version" : "1.0", // pdf module version
"orientation" : "landscape", // [landscape|portlait]
"size" : "A4", // size
"image" : "millsheet.pdf", // background image pdf
"styles" : { // define styles
"default" : { // default style
"fontFamily" : "xxxxx",
"fontSize" : 9,
"color" : "#000",
"underline" : false,
"horizontalAlignment" : "left",
"verticalAlignment" : "middle"
},
"default-numeric" : {
"style" : "default", // base style
"horizontalAlignment" : "right"
},
...
},
"fields" : [ // define fields
{ // simple field
"dataSource" : "customer", // data source(this must be value in data.json)
"style" : "default", // style(from styles)
"rect" : [ // rect to draw field
180, 100, 220, 12 // [x, y, width, height]
]
},
...
{ // record field
"dataSource" : "properties", // data source(this must be array in data.json)
"rect" : [ // rect to draw records
140, 293, 263, 90
],
"record" : { // define as record
"direction" : "x", // record direction
"size" : [ // size to draw record
52.6, 90 // [x, y]
],
"fields" : [ // define fields on record
{
"dataSource" : "labelEn", // data source(this must be records' member in data.json)
"style" : "default", // style(from styles)
"rect" : [ // offset rect in record
0, 0, 52.6, 15
]
},
{
"dataSource" : "max",
"style" : "default",
"rect" : [
0, 15, 52.6, 15 // offset rect in record
]
},
{
"dataSource" : "unit",
"style" : "default",
"rect" : [
0, 30, 52.6, 15 // offset rect in record
]
},
...
]
}
},
...
]
}
{
"customer" : "Mill Cert Sample Customer",
...
"properties" : [
{
"labelEn" : "Yield Strength",
"max" : "245.000",
"unit" : "N/m ㎡"
},
{
"labelEn" : "Tensile Strength",
"max" : "640.500",
"unit" : "N/m ㎡"
},
...
]
}```
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.