
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).
@broxus/airdrop-ui
Advanced tools
The library provides the AirdropUI
utility for implementing an airdrop form, examples of usage.
To implement your own logic:
checkQueue
-- checks if the user has an airdrop and their position in the queue
import { checkQueue } from '@broxus/airdrop-ui'
const checkResult = await checkQueue(apiBaseUrl, workspaceId, userAddress)
checkResult
will have one of the following values:
noReward
-- no reward for the user.inQueue
-- a reward is available, and the user is in the queue. checkResult.place contains the user's current position in the queue. In this case, you need to repeat the checkQueue
operation every 30 seconds.signed
-- the user's turn has come, and you can proceed to the next step.buildTransaction
-- prepares the data for calling a transaction
import { buildTransaction } from '@broxus/airdrop-ui'
import { Clock, EverscaleStandaloneClient } from 'everscale-standalone-client'
import { CHAIN } from '@tonconnect/ui'
const clock = new Clock()
const providerRpcClient = new ProviderRpcClient({
fallback: () =>
EverscaleStandaloneClient.create({
clock,
connection: {
data: {
endpoint: 'https://jrpc-ton.broxus.com/rpc',
},
id: Number(CHAIN.MAINNET),
type: 'jrpc',
},
}),
forceUseFallback: true,
})
const trxData = await buildTransaction(claimData, providerRpcClient, clock)
Execute the transaction
import { TonConnectUI } from '@tonconnect/ui'
const tonConnectUI = new TonConnectUI()
tonConnectUI.sendTransaction(trxData)
FAQs
Ton aidrop ui utils
The npm package @broxus/airdrop-ui receives a total of 0 weekly downloads. As such, @broxus/airdrop-ui popularity was classified as not popular.
We found that @broxus/airdrop-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.