Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Module for implementing FTP users in pyftpdlib through a SQL server
pip install pyftpdlibsqladdon
How to start pyftpdlib with user support via SQL
from pyftpdlib.handlers import FTPHandler
from pyftpdlib.servers import FTPServer
from pyftpdlibsqladdon import DummySqlAuthorizer
def main():
#define DummySqlAuthorizer
authorizer = DummySqlAuthorizer()
#add SQL server configuration
authorizer.add_sql_config('host_ip','database','sql_user','sql_password')
#add SQL column names where data is stored
authorizer.add_sql_query('table','user_column','password_column','home_path_column','permission_colum')
handler = FTPHandler
handler.authorizer = authorizer
server = FTPServer(('', 21), handler)
server.serve_forever()
if __name__ == "__main__":
main()
This authorizer cannot be used in conjunction with DummyAuthorizer, as it overwrites the virtual table of users with those obtained from the database.
FAQs
Module for implementing FTP users in pyftpdlib through a SQL server
We found that pyftpdlibsqladdon 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.