-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Code Security Report
Scan Metadata
Latest Scan: 2025-01-15 05:18pm
Total Findings: 6 | New Findings: 0 | Resolved Findings: 0
Tested Project Files: 238
Detected Programming Languages: 2 (Python*, C/C++ (Beta))
- Check this box to manually trigger a scan
Finding Details
| Severity | Vulnerability Type | CWE | File | Data Flows | Detected | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Buffer Overflow | 1 | 2025-01-15 05:23pm | |||||||||||||||||
| |||||||||||||||||||
| unsigned int shift; | |
| if (size > sizeof(ret)) | |
| memcpy(&ret, &p[1], sizeof(ret)); | |
| else | |
| memcpy((char *)(&ret + 1) - size, p, size); |
Secure Code Warrior Training Material
● Training
▪ Secure Code Warrior Buffer Overflow Training
● Videos
Vulnerable Code
Lines 139 to 144 in ad65e41
| { | |
| if (size > *capacity) { | |
| free(*buf); | |
| *buf = malloc(size); | |
| if (!*buf) { | |
| *capacity = 0; |
Secure Code Warrior Training Material
● Training
▪ Secure Code Warrior Out of Buffer Bounds Write Training
● Videos
Vulnerable Code
Lines 142 to 147 in ad65e41
| *buf = malloc(size); | |
| if (!*buf) { | |
| *capacity = 0; | |
| return false; | |
| } | |
| *capacity = size; |
Secure Code Warrior Training Material
● Training
▪ Secure Code Warrior Out of Buffer Bounds Write Training
● Videos
Vulnerable Code
Lines 454 to 459 in ad65e41
| frame->scopes = new_scopes; | |
| frame->num_scopes = new_num_scopes; | |
| frame->function_scope = num_ancestors; | |
| /* Look for the name in the new scopes. */ | |
| err = drgn_find_in_dwarf_scopes(frame->scopes, num_ancestors, |
1 Data Flow/s detected
Line 459 in ad65e41
| err = drgn_find_in_dwarf_scopes(frame->scopes, num_ancestors, |
Secure Code Warrior Training Material
● Training
▪ Secure Code Warrior Use After Free Training
● Videos
Vulnerable Code
Lines 11 to 16 in ad65e41
| unsigned int dst_bit_offset, bool lsb0) | |
| { | |
| uint8_t result; | |
| if (lsb0) { | |
| result = s[0] >> src_bit_offset; | |
| if (bit_size > 8 - src_bit_offset) |
Secure Code Warrior Training Material
● Training
▪ Secure Code Warrior Integer Underflow Training
● Videos
Vulnerable Code
Lines 121 to 126 in ad65e41
| return drgn_error_create(DRGN_ERROR_OTHER, | |
| "could not parse /sys/kernel/vmcoreinfo"); | |
| } | |
| fclose(file); | |
| _cleanup_free_ char *buf = malloc(size); |