
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Configure email configuration in the admin.
Install with pip install django-dynamic-smtp
Add dynamic_smtp
and some dependencies to INSTALLED_APPS
:
INSTALLED_APPS = [
...,
"django_object_actions",
"tinymce",
"dynamic_smtp",
]
EMAIL_BACKEND = (
"django.core.mail.backends.console.EmailBackend"
if DEBUG
else "dynamic_smtp.email.DynamicSMPTEmailBackend"
)
./manage.py migrate
tinymce
. Example:TINYMCE_JS_URL = "https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.0.1/tinymce.min.js"
TINYMCE_DEFAULT_CONFIG = {
"theme": "silver",
"height": 600,
"width": 700,
"resize": "both",
"plugins": "advlist,autolink,lists,link,image,charmap,print,preview,anchor,"
"searchreplace,visualblocks,code,fullscreen,insertdatetime,media,table,paste,"
"help,wordcount",
"license_key": "gpl",
}
See django-tinymce's documentation for more options.
# settings.py
...
DYNAMIC_SMPT_REGISTER_ADMIN = False
DYNAMIC_SMPT_EMAIL_CONFIGURATION_MODEL = "myapp.EmailConfiguration"
# myapp/models.py
from dynamic_smtp.models import AbstractEmailConfiguration
class EmailConfiguration(AbstractEmailConfiguration):
pass
# myapp/admin.py
from django.contrib import admin
from dynamic_smtp.models import AbstractEmailConfiguration
from .models import Emailconfiguration
@admin.register(EmailConfiguration)
class CustomModelAdmin(EmailConfigurationAdmin):
class Media:
css = {"all": ["myapp/style.css"]}
This package needs quite a few dependencies, considering its simplicity.
Django
beautifulsoup4
and lxml
: prepare text version of HTML emailsdjango-object-actions
: Button for email testdjango-tinymce
: HTML editing for signaturedjango-solo
: Use singleton modelAll contributions are welcome! To setup you environment:
pip install -r dev.requirements.txt
pre-commit install
FAQs
Configure email settings in the admin
We found that django-dynamic-smtp 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.