
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).
High quality image generation by Microsoft Designer. Reverse engineered API.
A Python library for generating images using Microsoft Designer's API.
pip install microsoftdesigner
Create a .env
file in your project root with:
USER_ID=your_user_id_here
AUTH_TOKEN=your_auth_token_here
python -m microsoftdesigner --help
options:
-h, --help show this help message and exit
--user_id USER_ID User ID (or set MSDESIGNER_USER_ID env var)
--auth_token AUTH_TOKEN
Authentication token (or set MSDESIGNER_AUTH_TOKEN env var)
--prompt PROMPT Image generation prompt
--save_path SAVE_PATH
Path to save generated images (default: images)
--resolution {1024x1024,1024x1792,1792x1024}
Image resolution (default: 1024x1024)
--boost_count BOOST_COUNT
Boost count for generation quality (default: 1)
--seed SEED Random seed for reproducible results (optional)
Basic example:
from microsoftdesigner.gen_images import create_img
from dotenv import load_dotenv
import os
load_dotenv() # Load environment variables from .env file
# Get credentials from environment
user_id = os.getenv("USER_ID")
auth_token = os.getenv("AUTH_TOKEN")
# Generate images
image_paths = create_img(
user_id=user_id,
auth_token=auth_token,
prompt="a beautiful sunset over mountains",
save_path="images", # Optional: defaults to 'images'
resolution="1024x1024", # Optional: 1024x1024, 1024x1792, 1792x1024
boost_count=1, # Optional: enhance generation quality (default: 1)
seed=42 # Optional: set for reproducible results
)
# Example output: list of paths like
# ['images/1024x1024/123e4567-e89b-12d3-a456-426614174000.jpg',
# 'images/1024x1024/987fcdeb-51d3-12d3-a456-426614174000.jpg', ...]
print(f"Generated images saved to: {image_paths}")
/DallE.ashx
UserId
header value → set as USER_IDAuthorization
header value → set as AUTH_TOKENimages/
├── 1024x1024/
├── 1024x1792/
└── 1792x1024/
FAQs
High quality image generation by Microsoft Designer. Reverse engineered API.
We found that microsoftdesigner 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.