-
Notifications
You must be signed in to change notification settings - Fork 3
XSJS queries and CodeQL update #129
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
|
|
||
| for (var entryPath in zipArchive) { | ||
| var targetFilePath = require("path").join(targetFolderName, entryPath) | ||
| require("fs").createWriteStream(targetFilePath).write(zip[entryPath]); |
Check failure
Code scanning / CodeQL
XSJS Zip Slip
| function test1(requestParameters) { | ||
| let someParameterValue = requestParameters.get("someParameter"); | ||
| $.response.status = $.net.http.OK; | ||
| $.response.headers.set("location", someParameterValue); |
Check warning
Code scanning / CodeQL
XSJS URL Redirect
| let query = "INSERT INTO " + someParameterValue1 + ".ENTITY (COL1) VALUES (" + someParameterValue2 + ")"; | ||
|
|
||
| let dbConnection = $.db.getConnection(); | ||
| let preparedStatement = dbConnection.prepareStatement(query); |
Check failure
Code scanning / CodeQL
XSJS SQL injection
| function test1(requestParameters) { | ||
| let someParameterValue1 = requestParameters.get("someParameter1"); | ||
| $.response.contentType = "text/html"; | ||
| $.response.setBody(requestParameterHandler(someParameterValue1)); |
Check failure
Code scanning / CodeQL
XSJS Reflected XSS
|
@mbaluda Thanks a lot! Can you change the toplevel folder name ( |
|
|
||
| for (var entryPath in zipArchive) { | ||
| var targetFilePath = require("path").join(targetFolderName, entryPath) | ||
| require("fs").createWriteStream(targetFilePath).write(zip[entryPath]); |
Check failure
Code scanning / CodeQL
XSJS Zip Slip
| function test1(requestParameters) { | ||
| let someParameterValue = requestParameters.get("someParameter"); | ||
| $.response.status = $.net.http.OK; | ||
| $.response.headers.set("location", someParameterValue); |
Check warning
Code scanning / CodeQL
XSJS URL Redirect
| let query = "INSERT INTO " + someParameterValue1 + ".ENTITY (COL1) VALUES (" + someParameterValue2 + ")"; | ||
|
|
||
| let dbConnection = $.db.getConnection(); | ||
| let preparedStatement = dbConnection.prepareStatement(query); |
Check failure
Code scanning / CodeQL
XSJS SQL injection
| function test1(requestParameters) { | ||
| let someParameterValue1 = requestParameters.get("someParameter1"); | ||
| $.response.contentType = "text/html"; | ||
| $.response.setBody(requestParameterHandler(someParameterValue1)); |
Check failure
Code scanning / CodeQL
XSJS Reflected XSS
jeongsoolee09
left a comment
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.
![]()
.xsjsfilesv2.18.0README.mdfiles