
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).
Application to make Django file fields save their values between page reloads
An application that solves a problem, when you need to save form's file field values between page reloads (including form validation errors).
Currently in development.
Install an application::
pip install django-sticky-files
Then add sticky_files
to INSTALLED_APPS
.
Include urls::
url(r'^sticky-images/', include('sticky_files.urls', namespace='sticky_files')),
There are four model fields that implement sticky files behaviour::
from django.db import models
from sticky_files import fields
from sticky_files.models import FileBase
class SomeImage(FileBase):
pass
class SomeFile(FileBase):
pass
class SomeModel(models.Model):
main_image = fields.StickyImageField(
'app.SomeImage',
related_name='+'
)
images = fields.ManyStickyImageField(
'app.SomeImage',
max_objects=4,
related_name='galleries_images',
)
file = fields.StickyFileField(
'app.SomeFile',
related_name='+'
)
files = fields.ManyStickyFileField(
'app.SomeFile',
max_objects=4,
related_name='galleries_files',
)
It looks like this:
.. image:: https://github.com/asyncee/django-sticky-files/raw/master/screenshots/intro.png :target: https://github.com/asyncee/django-sticky-files/raw/master/screenshots/intro.png
Project is in development, so there are no documentation and tests yet.
FAQs
Application to make Django file fields save their values between page reloads
We found that django-sticky-files 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.