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.
tiddlywebplugins.cors
Advanced tools
A plugin for TiddlyWeb to support CORS pre-flight checks.
This is an experiment, with limited functionality. As test cases increase, functionality will increase.
To use add 'tiddlywebplugins.cors' to 'system_plugins' in tiddlywebconfig.py.
There are a few optional config settings:
If 'cors.match_origin' is True, then the value of the Origin header will be the value of the Access-Control-Allow-Origin header, on simple requests. On non-simple request, it always matches. If False the value is '*' (on simple requests).
If 'cors.allow_creds' is True, then the Access-Control-Allow-Credentials header will be sent with a value of 'true', otherwise it will not be sent.
If 'cors.exposed_headers' is set, its should be a list of strings representing header names which are appended to the default Access-Control-Expose-Headers: ETag. This same list is used to set the default of Access-Control-Allow-Headers.
If 'cors.enable_non_simple' is True, preflight OPTIONS requests are handled. This defaults to False to avoid accidental exposure.
For authenticated cross-domain PUTs of resources the following config appears to be required:
'cors.enable_non_simple': True,
'cors.allow_creds': True,
'cors.match_origin': True,
The match_origin setting is required for the OPTIONS preflight requests to be handled effectively.
ToDo:
Copyright 2012, Chris Dent cdent@peermore.com
FAQs
CORS preflight support for TiddlyWeb
We found that tiddlywebplugins.cors 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.