-
Notifications
You must be signed in to change notification settings - Fork 589
Complete Security Vulnerability Assessment, Documentation, and Full Remediation #911
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
base: main
Are you sure you want to change the base?
Changes from 9 commits
da3a144
3a284cf
84e71c6
f119168
5c117fe
be64fdb
d3cb280
5f67d00
e3fa16f
d5bf4b8
8821e16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,7 +92,8 @@ import okhttp3.MultipartBody;"""; | |
| HttpRequestModel requestModel, | ||
| ) { | ||
| try { | ||
| String result = ""; | ||
| String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n"; | ||
| result += "// This code is generated for testing purposes\n\n"; | ||
|
||
| bool hasQuery = false; | ||
| bool hasBody = false; | ||
| bool hasFormData = false; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,11 @@ axios(config) | |
| : requestModel.hasFileInFormData | ||
| ? "// refer https://github.com/foss42/apidash/issues/293#issuecomment-1997568083 for details regarding integration\n\n" | ||
| : ""; | ||
|
|
||
| // Add security notice | ||
| result += "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n"; | ||
| result += "// This code is generated for testing purposes\n\n"; | ||
|
|
||
|
||
| var harJson = requestModelToHARJsonRequest( | ||
| requestModel, | ||
| useEnabled: true, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,7 +80,8 @@ import okhttp3.MediaType.Companion.toMediaType"""; | |
| HttpRequestModel requestModel, | ||
| ) { | ||
| try { | ||
| String result = ""; | ||
| String result = "// SECURITY NOTICE: Please validate all inputs and URLs before use in production\n"; | ||
| result += "// This code is generated for testing purposes\n\n"; | ||
|
||
| bool hasQuery = false; | ||
| bool hasBody = false; | ||
| bool hasFormData = false; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,7 +82,8 @@ print('Response Body:', response.text) | |
| String? boundary, | ||
| }) { | ||
| try { | ||
| String result = ""; | ||
| String result = "# SECURITY NOTICE: Please validate all inputs and URLs before use in production\n"; | ||
| result += "# This code is generated for testing purposes\n\n"; | ||
|
||
| bool hasQuery = false; | ||
| bool hasHeaders = false; | ||
| bool hasBody = false; | ||
|
|
||
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.
@copilot This change is not required.
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.
Reverted in commit d5bf4b8.