
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).
.. image:: https://travis-ci.org/34nm/gsmtpd.svg?branch=master
SMTP servers impletement base on Gevent
pip install gsmtpd
Basically gsmtpd is ported from Python standard lib smtpd, you can it check from Doc_
however there is only one difference, you should add monkey patch of gevent
.. code-block:: python
from gevent import monkey
monkey.patch_all()
.. code-block:: python
from gevent import monkey
monkey.patch_all()
from gsmtpd.server import SMTPServer
class DebuggingServer(SMTPServer):
# Do something with the gathered message
def process_message(self, peer, mailfrom, rcpttos, data):
inheaders = 1
lines = data.split('\n')
print '---------- MESSAGE FOLLOWS ----------'
for line in lines:
# headers first
if inheaders and not line:
print 'X-Peer:', peer[0]
inheaders = 0
print line
print '------------ END MESSAGE ------------'
if __name__ == "__main__":
server = DebuggingServer()
server.serve_forever()
The charts below shows gsmtpd vs asyncore based smtpd in Python standrary lib.
.. note::
Response per second = 0 means the program is crashed or refuse to connect
.. figure:: https://raw.githubusercontent.com/34nm/gsmtpd/master/helo_chart.png :scale: 100%
.. figure:: https://raw.githubusercontent.com/34nm/gsmtpd/master/mail_chart.png :scale: 100%
.. _Doc: http://gsmtpd.readthedocs.org
FAQs
A smtpd server impletement based on Gevent
We found that gsmtpd 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.