
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).
A module that combines the use of redis in-built data types to build a unique queue for processing and expiry.
A module that combines the use of redis in-built data types to build a unique queue for processing and expiry.
Items are put on the queue with an optional key. A duplicate key cannot be added until either:
The unique queue creates 3 datastructures to ensure the keys are unique. To ensure the keys don't linger after usage, all commands reset the ttl on the datastructures. Examples
import time
import redis
import redis_unique_queue
expiry_in_seconds = 1
conn = redis.Redis()
uqueue = redis_unique_queue.Queue(redis_conn=conn, expiry_in_seconds=expiry_in_seconds)
uqueue.put(100)
print("Expected size 1:", uqueue.qsize())
uqueue.put(100) # not added again
print("Expected size 1:", uqueue.qsize())
uqueue.put(200) # not added again
print("Expected size 2:", uqueue.qsize())
print("Expected item 100:", uqueue.get()) # get an item
time.sleep(expiry_in_seconds) # go past expiry seconds to test
# item 100 has expired
print("Items that expired:", uqueue.clear_expired()) # [100] -> a list of items that expires
print("Expected size 1:", uqueue.qsize())
print("Expected item 200:", uqueue.get()) # we have finished handling 200
uqueue.task_done(200)
print("Expected size 0:", uqueue.qsize())
print("Expected item None:", uqueue.get())
FAQs
A module that combines the use of redis in-built data types to build a unique queue for processing and expiry.
We found that redis-unique-queue demonstrated a healthy version release cadence and project activity because the last version was released less than 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.