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.
xss-scanner
Advanced tools
Cross-Site Scripting (XSS) scanner. This tool helps to find possible XSS vulnerabilities.
Cross-Site Scripting (XSS) scanner. This tool helps to find possible XSS vulnerabilities. It's intended use is to help "plug" the vulnerability, not exploit. Be nice. Make the web better.
The three most important countermeasures to prevent cross-site scripting attacks are to:
Url encode output URLs if they are constructed from input.
Html encode output if it contains input from the user or from other sources such as databases.
npm install
Open up the config.js
file and configure the xssOptions()
return object.
npm start
The console shows the XSS parameter values that have made it back with a status code 200. You can also dump the resulting Html to a file. Unfortunately, you have to manually check these. I prefer to use the latest version of Firefox with add-ons and extensions disabled. Other XSS tools, such as Burp Suite, also require some manual checking.
At the top of the Html content, look for a <![CDATA[ \"-alert(123456789))// ]]>
. It contains the offending XSS injection payload value.
FAQs
Cross-Site Scripting (XSS) scanner. This tool helps to find possible XSS vulnerabilities.
The npm package xss-scanner receives a total of 7 weekly downloads. As such, xss-scanner popularity was classified as not popular.
We found that xss-scanner demonstrated a not healthy version release cadence and project activity because the last version was released 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.