
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).
Download the module from:
http://gitlab.csn.uchile.cl/dpineda/csv2json
This module is a conversor from csv data to json.
The main goal is create a json file for Django models.
The csv must have the same fields as the django model
The fields related to another models uses the natural key. So every model must have a natural_key method.
The third argument
Using pip
pip install django_csv2json
From the repository
python setup.py install
This modules dispose a class CSV2JSON, that requires a origin folder, a destiniy folder and a list of files. Every element from this list must be a dictionary with the keys "{model, file, field, opts}".
Also, there are a command to use on the command line.
csv2json --origin "./csn" --destiny "./json" --file_json "./files.json"
For help, type
csv2json --help
Debe contener un campo models con los modelos de Django que contengan campos en el csv, determinar sus llaves.
Debe contener el archivo file csv.
Debe contener el field del cual se transforma un slug (un string formateado a sencillo)
Debe contener un dciccionario con las opciones o formato específico a cada campo.
Debe incluirse un diccionario (vacío) o que contenga el cambio en el nombre de los campos de csv al modelo django.
fields = ["models", "file", "field", "opts", "switch"]
files = [
dict(zip(fields,({'organization.kindoforganization':{"logo","name","acronim", "url"}},
'kindoforganization.csv', 'name',
{"description": read_file}, {}))),
dict(zip(fields,({'organization.organizationinfo':{"name","description","url_wiki"}},
'organization.csv',
'name', {"kind": add_list}, {}))),
]
kwargs = {
'files': files,
'origin': './csv',
'destiny': './json'
}
CSV2JSON(**kwargs)
FAQs
Data conversor from csv to json, to create the fixtures for django apps
We found that django-csv2json 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.