![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Copyright © http://randomrise.com, as an published work. All rights reserved.
This software is the property of randomrise technology
This software intend to provide open source (FREE TO USE) but any reproduction is not allowed
@contact: http://randomrise.com
@author: ChandraShekher Polimera (linkedin: chandrashekherpolimera | email: chandrashekher@techie.com)
@github: https://github.com/chandragithub/xssescape
@date: 15/08/2016
@version: 0.0.13 (beta)
It prevents cross site scripting (xss) attacts across the browser.
Cross-site scripting (XSS) is a code injection attack that allows an attacker to execute malicious JavaScript in another user's browser
- Persistent XSS
where the malicious string originates from the website's database.
- Reflected XSS
where the malicious string originates from the victim's request.
- DOM-based XSS
where the vulnerability is in the client-side code rather than the server-side code.
- @param: unSafeHtmlString
escape(param) {};
- @param: unSafeHtmlString
strictEscape(param) {};
- @param: safeHtmlString
reverseEscape(param) {};
- @param: safeHtmlString
unescape(param) {};
- @param: unSafeHtmlString
removeUnsafe(param) {};
- safeUrl() {};
- unSafeUrl() {};
- @param: path name (eg. /home, /web, /mywork)
unSafeUrl(param) {};
npm install xssescape
var xs = require('xssescape')
var htmlStr = "<script> alert(document.cookie); </script>";
xs.escape(htmlStr);
// output: "<script> alert(document.cookie); </script>"
var htmlStr = "<script> alert(document.cookie); </script>";
xs.strictEscape(htmlStr);
// output: "<script> alert(document.cookie); </script>"
var htmlStr = "<script> alert(document.cookie); </script>";
xs.reverseEscape(htmlStr);
// output: "<script> alert(document.cookie); </script>"
var htmlStr = "<script> alert(document.cookie); </script>";
xs.unescape(htmlStr);
// output: "<script> alert(document.cookie); </script>"
var htmlStr = "<script> alert(document.cookie); </script>";
xs.removeUnsafe(htmlStr);
// output: "script alert(document.cookie); /script"
var htmlStr = "<script> alert(document.cookie); </script>";
xs.removeStrictUnsafe(htmlStr);
// output: "script alertdocument.cookie /script"
var browserURL = "http://randomrise.com/?<script> document.cookie </script>";
xs.safeUrl();
// it will reload/refresh the page without search parameter.
var browserURL = "http://randomrise.com/?<script> document.cookie </script>";
xs.unSafeUrl();
// it will reload/refresh the page with search parameter.
var browserURL = "http://randomrise.com/?<script> document.cookie </script>";
xs.unSafeUrl('/home'); // eg. you can keep what ever you want as a path name.
// it will reload/refresh the page with /home after the default url.
FAQs
xssescape is used for preventing XSS attack across all browsers
The npm package xssescape receives a total of 11 weekly downloads. As such, xssescape popularity was classified as not popular.
We found that xssescape 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.