
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).
State driven high performance canvas graphics framework based on EaselJS and JSON Patch.
Currently, hyperc is in alpha stage, things may change.
Highly inspired from choojs/choo.
const Hyperc = require('hyperc')
const consecutive = require('hyperc/consecutive')
var app = new Hyperc('#stage')
function circleStore(state, emitter) {
var nextId = consecutive()
// store should add a unique container to state
// this key will be used to bind renderer
state.circles = {}
// adds a new item to store
// items should be id keyed objects
// here, provided consecutive helper is used to create sequential ids
function addItem(item) {
const id = nextId()
state.circles[id] = Object.assign({}, item, {id})
}
addItem({x: 100, y: 100, radius: 100, color: 'DeepSkyBlue'})
emitter.on('circle:add', item => {
addItem(item)
emitter.emit('render')
})
emitter.on('circle:moveItem', ({id, x, y}) => {
state.circles[id].x = x
state.circles[id].y = y
emitter.emit('render')
})
}
function circlesRenderer(state, emit) {
return {
add(container, item) {
var circle = new createjs.Shape()
circle.graphics.beginFill(item.color).drawCircle(0, 0, item.radius).endFill()
circle.id = item.id
circle.x = item.x
circle.y = item.y
container.addChild(circle)
circle.on('pressmove', e => {
emit('circle:moveItem', {
id: e.target.id,
x: e.stageX,
y: e.stageY
})
})
},
replace(container, item) {
const [circle] = container.children
circle.x = item.x
circle.y = item.y
circle.graphics.clear().beginFill(item.color).drawCircle(0, 0, item.radius).endFill()
}
}
}
// add store
app.use(circleStore)
// add renderer with store key to bind it
app.render('circles', circlesRenderer)
FAQs
hyperc ===
The npm package hyperc receives a total of 0 weekly downloads. As such, hyperc popularity was classified as not popular.
We found that hyperc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.