[*] Binary protection state of libip4tc.so.0.0.0
RELRO CANARY NX PIE RPATH RUNPATH SYMBOLS
No RELRO No Canary found NX disabled DSO No RPATH No RUNPATH Symbols
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_strerror_00011080.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
12 - memcpy(__dest,C_144_5554,0x108)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/__iptcc_p_del_policy_00011c44.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
15 - memcpy((void *)(iVar2 + 0x38),(void *)(iVar3 + 0x88),0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_set_policy_00012068.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
36 - memcpy((void *)(iVar1 + 0x38),param_3,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_set_counter_0001223c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
23 - memcpy(puVar4 + 0x22,param_3,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/__iptcc_bsearch_chain_index_00011d0c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
23 - fprintf(_stderr,(char *)0x5160,param_5)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/__iptcc_bsearch_chain_index_00011d0c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
59 - fprintf(_stderr,(char *)0x5138,uVar4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_standard_map_00011284.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
12 - memset(psVar3 + 1,0,0x1e)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_standard_map_00011284.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
13 - strcpy((char *)(psVar3 + 1),(char *)0x52a0)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_standard_map_00011284.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
13 - strcpy((char *)(psVar3 + 1),(char *)0x52a0); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
12 - __s = malloc(iVar2 * 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
12 - __s = malloc(iVar2 * 4); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
12 - __s = malloc(iVar2 * 4); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
19 - memset(__s,0,iVar2 * 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
7 - __s = malloc(param_2 + 0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
7 - __s = malloc(param_2 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
7 - __s = malloc(param_2 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
9 - memset(__s,0,0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/standard_target_map_00012e8c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
15 - fprintf(_stderr,(char *)0x519c,param_1)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_get_policy_00012f5c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
16 - memcpy(param_2,(void *)(iVar1 + 0x38),0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_append_entry_000137b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
19 - memcpy(piVar2 + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_append_entry_000137b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
19 - memcpy(piVar2 + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_replace_entry_00013910.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
39 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_replace_entry_00013910.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
39 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_insert_entry_00013b08.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
48 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_insert_entry_00013b08.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
48 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_delete_entry_000132b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
36 - memcpy(__dest,param_2,(uint)*(ushort *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_delete_entry_000132b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
36 - memcpy(__dest,param_2,(uint)*(ushort *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_delete_entry_000132b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
115 - fprintf(_stderr,(char *)0x51c4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_rename_chain_00013d18.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
25 - strncpy((char *)(iVar1 + 8),param_2,0x20)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_rename_chain_00013d18.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
25 - strncpy((char *)(iVar1 + 8),param_2,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_rename_chain_00013d18.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unterminated-string-strncpy
Issue description:
If there is no NUL character byte in the first n bytes of the source string, strncpy() and stpncpy() do not NUL-terminate the destination buffer. If the program does not explicitly terminate the destination buffer, this will almost certainly result in information disclosure, and possibly a buffer overflow condition.
25 - strncpy((char *)(iVar1 + 8),param_2,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
7 - __s = malloc(0x70)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
7 - __s = malloc(0x70); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
9 - memset(__s,0,0x70)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
10 - strncpy((char *)((int)__s + 8),param_1,0x20)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
10 - strncpy((char *)((int)__s + 8),param_1,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unterminated-string-strncpy
Issue description:
If there is no NUL character byte in the first n bytes of the source string, strncpy() and stpncpy() do not NUL-terminate the destination buffer. If the program does not explicitly terminate the destination buffer, this will almost certainly result in information disclosure, and possibly a buffer overflow condition.
10 - strncpy((char *)((int)__s + 8),param_1,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
36 - strcpy(acStack_88,param_1)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
36 - strcpy(acStack_88,param_1); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
44 - piVar3 = (int *)malloc(0x80)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
44 - piVar3 = (int *)malloc(0x80); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
50 - memset(piVar3,0,0x80)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
54 - strcpy((char *)(piVar3 + 10),acStack_88)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
54 - strcpy((char *)(piVar3 + 10),acStack_88); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
55 - __dest = (char *)malloc(iVar5 + 0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
55 - __dest = (char *)malloc(iVar5 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
55 - __dest = (char *)malloc(iVar5 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
61 - strcpy(__dest,acStack_88)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
61 - strcpy(__dest,acStack_88); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
64 - memcpy(piVar3 + 10,acStack_88,0x54)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
127 - memcpy(piVar13 + 10,pvVar11,(uint)uVar1)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
21 - printf((char *)0x51d8,0x51f0,*(undefined4 *)(*(int *)(param_1 + 0x7c) + 0x20))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
22 - printf((char *)0x5200,param_1 + 0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
25 - *(undefined4 *)(param_1 + 0x5c))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
29 - *(undefined4 *)(param_1 + 0x68),uVar1,uVar3)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
43 - fprintf(_stderr,(char *)0x5270,(int)puVar10 - (iVar7 + 0x28))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
51 - printf((char *)0x5290,iVar5,(int)puVar10 - (iVar7 + 0x28),uVar8,uVar1,uVar3)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
56 - uVar1 >> 0x18)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
61 - uVar1 >> 0x18)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
62 - printf((char *)0x52ec,puVar10 + 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
74 - printf((char *)0x5300,puVar10 + 8)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
86 - printf((char *)0x530c,(uint)(ushort)puVar10[0x14])
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
87 - printf((char *)0x531c,(uint)*(byte *)((int)puVar10 + 0x52))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
88 - printf((char *)0x532c,(uint)*(byte *)((int)puVar10 + 0x53))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
91 - printf((char *)0x533c)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
92 - printf((char *)0x5360,puVar10[0x15])
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
96 - printf((char *)0x5370,(ushort *)((int)puVar10 + uVar4) + 1)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
100 - printf((char *)0x5384,puVar9 + 1,(uint)*puVar9)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
118 - printf(__format,puVar9)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
52 - __dest = (char *)malloc(iVar7 + 0x110U)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
52 - __dest = (char *)malloc(iVar7 + 0x110U); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
52 - __dest = (char *)malloc(iVar7 + 0x110U); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
54 - memset(__dest,0,iVar7 + 0x110U)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
55 - pvVar2 = malloc(param_1[0x1d] << 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
62 - __size = iVar15 * 0x10 + 0x28
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
63 - __dest_00 = (char *)malloc(__size)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
63 - __dest_00 = (char *)malloc(__size); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
70 - strcpy(__dest,(char *)(param_1 + 10))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
70 - strcpy(__dest,(char *)(param_1 + 10)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
84 - strcpy(__dest + iVar3 + 0xd2,(char *)0x5130)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
84 - strcpy(__dest + iVar3 + 0xd2,(char *)0x5130); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
87 - strcpy(__dest + iVar3 + 0xf0,(char *)(piVar13 + 2))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
87 - strcpy(__dest + iVar3 + 0xf0,(char *)(piVar13 + 2)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
98 - memset(pcVar6,0,0x1e)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
99 - strcpy(pcVar6,(char *)0x52a0)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
99 - strcpy(pcVar6,(char *)0x52a0); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
106 - memcpy(__dest + piVar12[6] + 0x60,piVar12 + 10,piVar12[9])
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
113 - strcpy(__dest + iVar3 + 0xd2,(char *)0x52a0)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
113 - strcpy(__dest + iVar3 + 0xd2,(char *)0x52a0); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
126 - memcpy(__dest + iVar3 + 0xc0,piVar13 + 0xe,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
135 - strcpy(__dest + iVar3 + 0x22,(char *)0x5130)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
135 - strcpy(__dest + iVar3 + 0x22,(char *)0x5130); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
136 - strcpy(__dest + iVar3 + 0x40,(char *)0x5130)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
136 - strcpy(__dest + iVar3 + 0x40,(char *)0x5130); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
139 - strcpy(__dest_00,(char *)(param_1 + 10))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
139 - strcpy(__dest_00,(char *)(param_1 + 10)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
148 - memcpy(pcVar6,piVar12,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
187 - memcpy(pcVar6,__src,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
220 - iVar3 = setsockopt(*param_1,0,0x41,__dest_00,__size)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/__iptcc_bsearch_chain_index_00011d0c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
23 - fprintf(_stderr,(char *)0x5160,param_5)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/__iptcc_bsearch_chain_index_00011d0c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
59 - fprintf(_stderr,(char *)0x5138,uVar4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/__iptcc_p_del_policy_00011c44.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
15 - memcpy((void *)(iVar2 + 0x38),(void *)(iVar3 + 0x88),0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
21 - printf((char *)0x51d8,0x51f0,*(undefined4 *)(*(int *)(param_1 + 0x7c) + 0x20))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
22 - printf((char *)0x5200,param_1 + 0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
25 - *(undefined4 *)(param_1 + 0x5c))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
29 - *(undefined4 *)(param_1 + 0x68),uVar1,uVar3)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
43 - fprintf(_stderr,(char *)0x5270,(int)puVar10 - (iVar7 + 0x28))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
51 - printf((char *)0x5290,iVar5,(int)puVar10 - (iVar7 + 0x28),uVar8,uVar1,uVar3)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
56 - uVar1 >> 0x18)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
61 - uVar1 >> 0x18)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
62 - printf((char *)0x52ec,puVar10 + 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
74 - printf((char *)0x5300,puVar10 + 8)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
86 - printf((char *)0x530c,(uint)(ushort)puVar10[0x14])
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
87 - printf((char *)0x531c,(uint)*(byte *)((int)puVar10 + 0x52))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
88 - printf((char *)0x532c,(uint)*(byte *)((int)puVar10 + 0x53))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
91 - printf((char *)0x533c)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
92 - printf((char *)0x5360,puVar10[0x15])
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
96 - printf((char *)0x5370,(ushort *)((int)puVar10 + uVar4) + 1)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
100 - printf((char *)0x5384,puVar9 + 1,(uint)*puVar9)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/dump_entries_000141ac.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
118 - printf(__format,puVar9)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_append_entry_000137b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
19 - memcpy(piVar2 + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_append_entry_000137b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
19 - memcpy(piVar2 + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
52 - __dest = (char *)malloc(iVar7 + 0x110U)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
52 - __dest = (char *)malloc(iVar7 + 0x110U); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
52 - __dest = (char *)malloc(iVar7 + 0x110U); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
54 - memset(__dest,0,iVar7 + 0x110U)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
55 - pvVar2 = malloc(param_1[0x1d] << 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
62 - __size = iVar15 * 0x10 + 0x28
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
63 - __dest_00 = (char *)malloc(__size)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
63 - __dest_00 = (char *)malloc(__size); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
70 - strcpy(__dest,(char *)(param_1 + 10))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
70 - strcpy(__dest,(char *)(param_1 + 10)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
84 - strcpy(__dest + iVar3 + 0xd2,(char *)0x5130)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
84 - strcpy(__dest + iVar3 + 0xd2,(char *)0x5130); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
87 - strcpy(__dest + iVar3 + 0xf0,(char *)(piVar13 + 2))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
87 - strcpy(__dest + iVar3 + 0xf0,(char *)(piVar13 + 2)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
98 - memset(pcVar6,0,0x1e)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
99 - strcpy(pcVar6,(char *)0x52a0)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
99 - strcpy(pcVar6,(char *)0x52a0); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
106 - memcpy(__dest + piVar12[6] + 0x60,piVar12 + 10,piVar12[9])
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
113 - strcpy(__dest + iVar3 + 0xd2,(char *)0x52a0)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
113 - strcpy(__dest + iVar3 + 0xd2,(char *)0x52a0); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
126 - memcpy(__dest + iVar3 + 0xc0,piVar13 + 0xe,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
135 - strcpy(__dest + iVar3 + 0x22,(char *)0x5130)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
135 - strcpy(__dest + iVar3 + 0x22,(char *)0x5130); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
136 - strcpy(__dest + iVar3 + 0x40,(char *)0x5130)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
136 - strcpy(__dest + iVar3 + 0x40,(char *)0x5130); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
139 - strcpy(__dest_00,(char *)(param_1 + 10))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
139 - strcpy(__dest_00,(char *)(param_1 + 10)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
148 - memcpy(pcVar6,piVar12,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
187 - memcpy(pcVar6,__src,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_commit_00011448.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
220 - iVar3 = setsockopt(*param_1,0,0x41,__dest_00,__size)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_delete_entry_000132b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
36 - memcpy(__dest,param_2,(uint)*(ushort *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_delete_entry_000132b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
36 - memcpy(__dest,param_2,(uint)*(ushort *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_delete_entry_000132b8.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
115 - fprintf(_stderr,(char *)0x51c4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_get_policy_00012f5c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
16 - memcpy(param_2,(void *)(iVar1 + 0x38),0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
36 - strcpy(acStack_88,param_1)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
36 - strcpy(acStack_88,param_1); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
44 - piVar3 = (int *)malloc(0x80)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
44 - piVar3 = (int *)malloc(0x80); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
50 - memset(piVar3,0,0x80)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
54 - strcpy((char *)(piVar3 + 10),acStack_88)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
54 - strcpy((char *)(piVar3 + 10),acStack_88); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
55 - __dest = (char *)malloc(iVar5 + 0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
55 - __dest = (char *)malloc(iVar5 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
55 - __dest = (char *)malloc(iVar5 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
61 - strcpy(__dest,acStack_88)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
61 - strcpy(__dest,acStack_88); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
64 - memcpy(piVar3 + 10,acStack_88,0x54)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_init_00014854.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
127 - memcpy(piVar13 + 10,pvVar11,(uint)uVar1)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_insert_entry_00013b08.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
48 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_insert_entry_00013b08.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
48 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_rename_chain_00013d18.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
25 - strncpy((char *)(iVar1 + 8),param_2,0x20)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_rename_chain_00013d18.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
25 - strncpy((char *)(iVar1 + 8),param_2,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_rename_chain_00013d18.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unterminated-string-strncpy
Issue description:
If there is no NUL character byte in the first n bytes of the source string, strncpy() and stpncpy() do not NUL-terminate the destination buffer. If the program does not explicitly terminate the destination buffer, this will almost certainly result in information disclosure, and possibly a buffer overflow condition.
25 - strncpy((char *)(iVar1 + 8),param_2,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_replace_entry_00013910.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
39 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a))
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_replace_entry_00013910.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-use-of-source-size-in-copy
Issue description:
The software uses the size of a source buffer when reading from or writing to a destination buffer, which may cause it to access memory that is outside of the bounds of the buffer.
39 - memcpy(__ptr + 10,param_2,(size_t)*(undefined2 *)((int)param_2 + 0x5a)); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_set_counter_0001223c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
23 - memcpy(puVar4 + 0x22,param_3,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_set_policy_00012068.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
36 - memcpy((void *)(iVar1 + 0x38),param_3,0x10)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptc_strerror_00011080.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
12 - memcpy(__dest,C_144_5554,0x108)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
7 - __s = malloc(0x70)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
7 - __s = malloc(0x70); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
9 - memset(__s,0,0x70)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
10 - strncpy((char *)((int)__s + 8),param_1,0x20)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
10 - strncpy((char *)((int)__s + 8),param_1,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_chain_head_00013f20.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-unterminated-string-strncpy
Issue description:
If there is no NUL character byte in the first n bytes of the source string, strncpy() and stpncpy() do not NUL-terminate the destination buffer. If the program does not explicitly terminate the destination buffer, this will almost certainly result in information disclosure, and possibly a buffer overflow condition.
10 - strncpy((char *)((int)__s + 8),param_1,0x20); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
7 - __s = malloc(param_2 + 0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
7 - __s = malloc(param_2 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
7 - __s = malloc(param_2 + 0x28); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_alloc_rule_00011204.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
9 - memset(__s,0,0x28)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-integer-wraparound
Issue description:
The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.
12 - __s = malloc(iVar2 * 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
12 - __s = malloc(iVar2 * 4); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
12 - __s = malloc(iVar2 * 4); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_chain_index_alloc_00011150.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
19 - memset(__s,0,iVar2 * 4)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_standard_map_00011284.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-signed-unsigned-conversion
Issue description:
The software uses a signed primitive and performs a cast to an unsigned primitive, or uses an unsigned primitive and performs a cast to a signed primitive, which can produce an unexpected value. When the result of a function is to be used as a size parameter, using negative return values can have unexpected results. Although less frequent an issue, unsigned-to-signed conversion can be the precursor to buffer underwrite conditions. Buffer underwrites occur frequently when large unsigned values are cast to signed values, and then used as indexes into a buffer or for pointer arithmetic.
12 - memset(psVar3 + 1,0,0x1e)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_standard_map_00011284.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-insecure-api-strcpy-strcat
Issue description:
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
13 - strcpy((char *)(psVar3 + 1),(char *)0x52a0)
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/iptcc_standard_map_00011284.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-interesting-api-calls
Issue description:
Locate all calls to interesting and potentially insecure API functions (candidate points). The auditor can backtrace from these candidate points to find pathways allowing access from untrusted input.
13 - strcpy((char *)(psVar3 + 1),(char *)0x52a0); //possible issue identified - semgrep
[+] Identified source function: /logs/s16_ghidra_decompile_checks/haruspex_libip4tc.so.0.0.0/standard_target_map_00012e8c.c
Semgrep rule: external.semgrep-rules-0xdea.rules.c.raptor-format-string-bugs
Issue description:
The software uses a function that accepts a format string as an argument, but the format string originates from an external source. This can lead to buffer overflows, denial of service, or data representation problems.
15 - fprintf(_stderr,(char *)0x519c,param_1)