{"id":31708,"date":"2015-07-28T01:11:13","date_gmt":"2015-07-27T16:11:13","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=31708"},"modified":"2015-07-28T01:11:13","modified_gmt":"2015-07-27T16:11:13","slug":"website-exposed-git-directory","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/website-exposed-git-directory\/","title":{"rendered":"\u3010\u8b66\u9418\u30111\/600\u306e\u5272\u5408\u3067Web\u30b5\u30a4\u30c8\u304c\u300c.git\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u516c\u958b\u3057\u3066\u3044\u308b\u4e8b\u304c\u5224\u660e"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/07\/Ihacking.jpg\" alt=\"Hacking\" title=\"hacking.jpg\" border=\"0\" width=\"545\" height=\"409\" \/><\/p>\n<p>\u4e16\u754c\u7684\u306b\u4eba\u6c17\u306e\u5206\u6563\u578b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u300cgit\u300d\u3002\u4eca\u3084\u958b\u767a\u8005\u4ee5\u5916\u306b\u3082\u5e83\u307e\u308a\u3064\u3064\u3042\u308b\u4eba\u6c17\u30bd\u30d5\u30c8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u5206\u7ba1\u7406\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u300c.git\u300d\u306e\u53d6\u308a\u6271\u3044\u304c\u304a\u308d\u305d\u304b\u306b\u306a\u308a\u304c\u3061\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u30c6\u30af\u30cb\u30ab\u30eb\u30b3\u30f3\u30b5\u30eb\u30bf\u30f3\u30c8\u306eJamie Brown\u6c0f\u306f\u30d6\u30ed\u30b0\u8a18\u4e8b\u300c<a href=\"http:\/\/www.jamiembrown.com\/blog\/one-in-every-600-websites-has-git-exposed\/\">One in every 600 websites has .git exposed<\/a>\u300d\u306b\u3066\u3001\u591a\u304f\u306eWeb\u30b5\u30a4\u30c8\u304c\u8aa4\u3063\u3066.git\u30d5\u30a9\u30eb\u30c0\u3092\u516c\u958b\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u4e8b\u5b9f\u306b\u8b66\u9418\u3092\u9cf4\u3089\u3057\u3066\u3044\u307e\u3059(<a href=\"https:\/\/news.ycombinator.com\/item?id=9952356\">Hacker News<\/a>)\u3002<\/p>\n<p><!--more--><\/p>\n<h2>600\u306b1\u306e\u5272\u5408\u3067.git\u30d5\u30a9\u30eb\u30c0\u304c\u516c\u958b\u3055\u308c\u308b<\/h2>\n<p>\u6c0f\u306f\u3001\u500b\u4eba\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067150\u4e07\u4ef6\u306b\u304a\u3088\u3076\u30c9\u30e1\u30a4\u30f3\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3089\u30c9\u30e1\u30a4\u30f3\u306e\u3046\u30612,402\u306e\u30b5\u30a4\u30c8\u304c.git\u30d5\u30a9\u30eb\u30c0\u3092\u9593\u9055\u3063\u3066\u516c\u958b\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\u306b\u3057\u3066\u3044\u308b\u4e8b\u5b9f\u3092\u6307\u6458\u3057\u3066\u3044\u307e\u3059\u3002\u5272\u5408\u3067\u3044\u3046\u30681\/600\u3067\u30010.16%\u306eWeb\u30b5\u30a4\u30c8\u304c\u5371\u967a\u306a\u72b6\u614b\u306b\u3042\u3063\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3061\u308d\u3093\u4e2d\u306b\u306f\u7121\u5bb3\u306a\u60c5\u5831\u3057\u304b\u542b\u307e\u306a\u3044git\u30ea\u30dd\u30b8\u30c8\u30ea\u3082\u5b58\u5728\u3057\u305f\u3088\u3046\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u3001Amazon AWS\u3084Google Cloud\u306a\u3069\u306eAPI\u30ad\u30fc\u3001FTP\u306e\u8a2d\u5b9a\u3001\u3055\u3089\u306b\u306fSQL\u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3084\u3001\u500b\u4eba\u60c5\u5831\u3092\u542b\u3080CSV\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3001\u91cd\u8981\u306a\u6a5f\u5bc6\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u3082\u5b58\u5728\u3057\u3066\u3044\u305f\u305d\u3046\u3067\u3059\u3002<\/p>\n<h2>\u4eca\u3059\u3050.git\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u542b\u307e\u308c\u306a\u3044\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af<\/h2>\n<p>\u3053\u308c\u3092\u8e0f\u307e\u3048\u958b\u767a\u8005\u306b\u5bfe\u3057\u3001.git\u30d5\u30a9\u30eb\u30c0\u304c\u9593\u9055\u3063\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u4eca\u3059\u3050\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>\n  http:\/\/www.yourdomain.com\/.git\/\n<\/pre>\n<p>\u958b\u767a\u8005\u3084Web\u62c5\u5f53\u8005\u306f\u4e0a\u8a18\u30d5\u30a9\u30eb\u30c0\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb.htaccess\u306b\u3088\u308b.git\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30a2\u30af\u30bb\u30b9\u7981\u6b62\u8a2d\u5b9a\u3082\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002\u5177\u4f53\u7684\u306a\u65b9\u6cd5\u306f<a href=\"http:\/\/stackoverflow.com\/questions\/6142437\/make-git-directory-web-inaccessible\">Make .git directory web inaccessible<\/a>\u3067\u306e\u8b70\u8ad6\u304c\u53c2\u8003\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e16\u754c\u7684\u306b\u4eba\u6c17\u306e\u5206\u6563\u578b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u300cgit\u300d\u3002\u4eca\u3084\u958b\u767a\u8005\u4ee5\u5916\u306b\u3082\u5e83\u307e\u308a\u3064\u3064\u3042\u308b\u4eba\u6c17\u30bd\u30d5\u30c8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u5206\u7ba1\u7406\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u300c.git\u300d\u306e\u53d6\u308a\u6271\u3044\u304c\u304a\u308d\u305d\u304b\u306b\u306a\u308a\u304c\u3061\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u30c6\u30af\u30cb\u30ab\u30eb\u30b3\u30f3\u30b5\u30eb\u30bf [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":31707,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66,75],"tags":[159,1572,2201],"class_list":["post-31708","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","category-software","tag-git","tag-security","tag-website"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/31708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=31708"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/31708\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/31707"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=31708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=31708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=31708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}