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.
.. image:: https://readthedocs.org/projects/xmlrpcssl/badge/?version=latest :target: http://xmlrpcssl.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://coveralls.io/repos/github/jonDel/xmlrpcssl/badge.svg?branch=master :target: https://coveralls.io/github/jonDel/xmlrpcssl?branch=master
.. image:: https://landscape.io/github/jonDel/xmlrpcssl/master/landscape.svg?style=flat :target: https://landscape.io/github/jonDel/xmlrpcssl/master :alt: Code Health
.. image:: https://www.versioneye.com/user/projects/58233fdf613b6800422cb9b6/badge.svg?style=flat :target: https://www.versioneye.com/user/projects/58233fdf613b6800422cb9b6
xmlprcssl is a Python library that provides secure communication (TLS <https://en.wikipedia.org/wiki/Transport_Layer_Security>
__) beetween clients and servers through xmlrpc protocol. It supports plugable handlers to provide user authentication. For now, it has as an example a ldap based authentication handler.
.. code:: python
from xmlrpcssl import SecureAuthenticatedXMLRPCServer from xmlrpcssl.handlers import LdapVerifyingRequestHandler from datetime import datetime keySsl='/tmp/server.key' crtSsl='/tmp/server.crt' tcpPort=433 serverIp='10.0.0.1' ldapHost = 'ldapHost' # User must have access granted to this host in ldap ldapServer = 'ldapServer' # ip or name of ldap server gidNumber = 111 # User must be in this group in order to be authenticated isMasterUser = False # True if the user has write permissions in the ldap server baseUsrLoginDn = 'o=Organization,c=US' # user base DN to perform login in
baseSearchDn = 'o=Organization,c=US' # search base DN to perform a search in
RequestHandler = LdapVerifyingRequestHandler # a handler that inherits from
optArgs={'isMasterUser':isMasterUser,'baseUsrLoginDn':baseUsrLoginDn, ... 'ldapServer':ldapServer,'gidNumber':gidNumber,'baseSearchDn':baseSearchDn, ... 'host':ldapHost,'RequestHandler':RequestHandler} serverSSL=SecureAuthenticatedXMLRPCServer((serverIp,tcpPort),keySsl,crtSsl,**optArgs) def test(): ... # toy test function ... return datetime.now().strftime("%H:%M:%S") serverSSL.register_function(test) serverSSL.serve_forever()
.. code:: python
from xmlrpclib import ServerProxy userName = 'ldapUser' password = 'ldapUserPassword' tcpPort=433 serverIp='10.0.0.1' clientXml=ServerProxy('https://'+userName+':'+password+'@'+serverIp+':'+str(tcpPort)) response = clientXml.test() print response
To install xmlrpcssl, simply run:
::
$ pip install xmlrpcssl
xmlrpcssl is compatible with Python 2.6+
https://xmlrpcssl.readthedocs.io
Feel free to fork, evaluate and contribute to this project.
Source: https://github.com/jonDel/xmlrpcssl
GPLv3 licensed.
FAQs
xmlrpc server with basic authentication and secured with ssl
We found that xmlrpcssl 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.