{"exploit":{"id":"EDB-20146","name":"Sun Solaris AnswerBook2 - Remote Command Execution","description":"Sun Solaris AnswerBook2 - Remote Command Execution","cves":["CVE-2000-0697"],"author":"Lluis Mora","published":"2000-08-07","platform":"solaris","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/20146","path":"exploits/solaris/remote/20146.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-20146.txt","vulnerabilities":[{"id":"CVE-2000-0697","state":"PUBLISHED","title":null,"titleSource":null,"description":"The administration interface for the dwhttpd web server in Solaris AnswerBook2 allows interface users to remotely execute commands via shell metacharacters.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2000-0697","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-2000-0697"},"updatedAt":"2024-08-08T05:28:41.437Z","retrievedAt":"2026-11-26T17:05:55.399Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-20146.png?v=2","url":"https://exploitbin.com/exploits/EDB-20146","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-20146/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-20146/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2000/https://www.securityfocus.com/bid/1556/info\n\nA vulnerability exists in version 1.4.2 and prior of the AnswerBook2 server from Sun. It is possible for remote users who have administrative access to execute arbitrary commands on the machine running AnswerBook2. These commands will be executed with the privileges of user 'daemon'\n\n----------------------------------------\n\nOne of the options you have while administering the AB2 is to rotate the\naccess and error logs. The server allows you to specify the target file\nwhere the logs will be rotated to. You can use ../../../../../this/file to\ncreate and overwrite files outside the web server document root directory.\nFurther investigation showed that the server performs the following command\nto rotate the server logs:\n\nsh -c \"cp /var/log/ab2/logs/original_log\n/var/log/ab2/logs/USER_PROVIDED_TARGET\"\n\nSo an attacker could specify a destination log like \"x ; uname -a\" that will\ntranslate to:\n\nsh -c \"cp /var/log/ab2/logs/original_log /var/log/abs/logs/x ; uname -a\"","sha256":"99b4bd117c874de004e730c828bca7d89627cbc068a1ae903b1fa549b1bc239b","bytes":1058,"fetchedAt":"2026-11-26T17:05:52.266Z","encoding":"utf-8 (display only; download retains original bytes)"}