Skip to content

Commit ccc4727

Browse files
Update external/source/exploits/CVE-2023-0386/exploit.c
Avoid recursively delete files indiscriminate. Co-authored-by: bcoles <[email protected]>
1 parent 7a921bb commit ccc4727

File tree

1 file changed

+1
-1
lines changed
  • external/source/exploits/CVE-2023-0386

1 file changed

+1
-1
lines changed

external/source/exploits/CVE-2023-0386/exploit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void preps()
150150
char buf[4096];
151151
if (mkdir(DIR_BASE, 0777))
152152
perror("mkdir");
153-
sprintf(buf, "rm -rf %s/*", DIR_BASE);
153+
sprintf(buf, "rm -rf '%s/*'", DIR_BASE);
154154
system(buf);
155155
if (mkdir(DIR_LOWER, 0777))
156156
perror("mkdir");

0 commit comments

Comments
 (0)