-
Notifications
You must be signed in to change notification settings - Fork 2
Adds support for npm
and xsjslib
modules
#143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 0c89db4.
javascript/frameworks/xsjs/lib/advanced_security/javascript/frameworks/xsjs/XSJSLibModules.qll
Outdated
Show resolved
Hide resolved
javascript/frameworks/xsjs/lib/advanced_security/javascript/frameworks/xsjs/XSJSLibModules.qll
Outdated
Show resolved
Hide resolved
javascript/frameworks/xsjs/lib/advanced_security/javascript/frameworks/xsjs/XSJSLibModules.qll
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some questions/comments for starters. I think you should take an alternative call to $.import
: import(package, library) → {Object}
and its real-world implications into account.
sorry @jeongsoolee09 this PR was not yet ready for review |
- Update CodeQL version - Standardize query ids - Include `.cds` files in the DB - Implement `CdlObject` location in the `.cds` file - Modified `EntityExposedWithoutAuthn` error message to include the name of the exposed element - Modified `SensitiveExposure` error message to include the name of the exposed element
- Update CodeQL version - Standardize query ids - Include `.cds` files in the DB - Implement `CdlObject` location in the `.cds` file - Modified `EntityExposedWithoutAuthn` error message to include the name of the exposed element - Modified `SensitiveExposure` error message to include the name of the exposed element
@@ -10,7 +10,7 @@ | |||
function test1(requestParameters) { | |||
let someParameterValue1 = requestParameters.get("someParameter1"); | |||
$.response.contentType = "text/html"; | |||
$.response.setBody(requestParameterHandler(someParameterValue1)); | |||
$.response.setBody(requestParameterHandler(someParameterValue1)); // js/xsjs-reflected-xss |
Check failure
Code scanning / CodeQL
XSJS Reflected XSS High test
user-provided value
function test4(requestParameters) { | ||
let someParameterValue4 = requestParameters.get("someParameter4"); | ||
$.response.contentType = "text/html"; | ||
$.response.setBody(requestParameterHandler(xssSecure.encodeHTML(someParameterValue4))); |
Check failure
Code scanning / CodeQL
XSJS Reflected XSS High test
This pull request includes several updates to the
XSJS
framework adding support forNPM
andxsjslib
modules.npm
modules with$.require
import syntax (from v2.19.0)@sap/xss-secure
XSS sanitizersxsjslib
modules with$.import("relative/path.xsjslib")
syntax using literal relative path