Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
django-preventconcurrentlogins
Advanced tools
Django middleware that prevents multiple concurrent logins. If a user is already logged into the Django application and tries to log in somewhere else, the previous session is deleted.
This package is based on code from http://stackoverflow.com/a/1814797 and https://gist.github.com/peterdemin/5829440.
Add "preventconcurrentlogins" to your INSTALLED_APPS settings like this::
INSTALLED_APPS = {
...
'preventconcurrentlogins',
}
Add "preventconcurrentlogins.middleware.PreventConcurrentLoginsMiddleware" to MIDDLEWARE_CLASSES::
MIDDLEWARE_CLASSES = {
...
'preventconcurrentlogins.middleware.PreventConcurrentLoginsMiddleware',
}
Run python manage.py migrate
to create the visitor model that is used to track a users currently active session
key.
FAQs
Django middleware that prevents multiple concurrent logins.
We found that django-preventconcurrentlogins 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.