-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unescape D\: in f_dir - Fix CVE-2014-10401 for Windows
The DNS returns f_dir as C\\:\\\\Foo\\\\DBI\\\\test_output_12345 for my $dl ("", "c", "C") { for my $c ("", ":", "\:", "\\:", "\\\:", "\\\\:") { for my $f ("/", map { "\\" x $_ } 0..5) { my $d = $dl.$c.$f or next; printf "%2s %5s %-8s %-15s %s\n", $dl, $c, $f, $d, -d $d ? "Yes" : "No"; } } } Shows that -d accepts optional drive-letter-colon (drive letter is case insensitive too). Doubles \ in path are no problem, but escaped : will not be valid
- Loading branch information
Showing
1 changed file
with
49 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters