Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPathTraversal (2.8 sec)

  1. src/test/java/jcifs/util/InputValidatorTest.java

        @ParameterizedTest
        @DisplayName("Test path traversal detection")
        @ValueSource(strings = { "../etc/passwd", "..\\windows\\system32", "folder/../../../etc", "test/../../root", "..\\..\\..\\windows" })
        void testPathTraversal(String path) {
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateSmbPath(path));
        }
    
        @ParameterizedTest
        @DisplayName("Test valid SMB paths")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
Back to top