We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af462f7 commit 23db148Copy full SHA for 23db148
modules/exploits/linux/local/runc_cwd_priv_esc.rb
@@ -169,6 +169,11 @@ def exploit
169
fail_with(Failure::BadConfig, "#{base_dir} is not writable")
170
end
171
172
+ # Make sure we can execute our payload as root
173
+ if nosuid?(base_dir)
174
+ fail_with(Failure::BadConfig, "#{base_dir} is mounted nosuid")
175
+ end
176
+
177
# create directory to write all our files to
178
dir = "#{base_dir}/.#{rand_text_alphanumeric(5..10)}"
179
mkdir(dir)
0 commit comments