Commit 74f2008
Fix code QL security issues (#1231)
* Fix code QL security issues:
- Added a timeout to the Regex constructor to prevent potential Regular Expression Denial of Service (ReDoS).
- Sanitized the user-provided filename in GetBinary.
- Improved debug logging in GXMetadata.cs by logging class names instead of constructor arguments, and removed ConstructorArgsString to prevent unsanitized user input from being written to log files.
* Add directory traversal checks for ZIP extraction
---------
Co-authored-by: claudiamurialdo <[email protected]>1 parent 0eb2a56 commit 74f2008
File tree
4 files changed
+20
-13
lines changed- dotnet/src
- dotnetcore/GxClasses.Web/Middleware
- dotnetframework
- GxClasses
- Data
- Helpers
- GxCompress
4 files changed
+20
-13
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
| 950 | + | |
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
| |||
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | 232 | | |
243 | 233 | | |
244 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
606 | 614 | | |
607 | 615 | | |
608 | 616 | | |
| |||
742 | 750 | | |
743 | 751 | | |
744 | 752 | | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
745 | 761 | | |
746 | 762 | | |
747 | 763 | | |
| |||
0 commit comments