- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for traversal (1.08 sec)
-
src/main/java/jcifs/util/PathValidator.java
throw new SmbException("Path contains control characters"); } // Check for traversal sequences if (containsTraversal(path)) { log.warn("Path contains directory traversal: {}", sanitizeForLog(path)); throw new SmbException("Path contains directory traversal sequences"); } // Normalize the path String normalized = normalizePath(path);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
README.md
- **I/O Operations** (`org.codelibs.core.io`) - File handling, resource management, stream utilities, and traversal utilities for efficient resource processing - **Reflection** (`org.codelibs.core.lang`) - Class loading, method/field access, type introspection utilities, and generics support
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sun Aug 31 02:56:02 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
/** * Validates that a given path is safe and does not attempt path traversal attacks. * <p> * This method checks if the resolved absolute path starts with the allowed base directory, * preventing access to files outside the intended directory through path traversal * techniques like "../../../etc/passwd". * </p> * <p> * Example usage: * </p>Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} // Check for directory traversal if (path.contains("..") || path.contains("./") || path.contains(".\\")) { failedValidations.incrementAndGet(); log.warn("Path contains traversal sequences: {}", sanitizeForLog(path)); throw new SmbException("Path contains directory traversal"); } // Check individual componentsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
} /** * Test isPathSafe with path traversal attempt * * @throws Exception */ @Test public void testIsPathSafe_PathTraversalAttempt() throws Exception { final Path baseDir = tempFolder.getRoot().toPath(); final Path traversalPath = baseDir.resolve("../../../etc/passwd"); assertFalse("Path traversal should be blocked", FileUtil.isPathSafe(traversalPath, baseDir));Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 10.3K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
"Destination array bounds exceeded: offset=" + dstOffset + ", length=" + length + ", array.length=" + dst.length); } } /** * Validates SMB path to prevent traversal attacks * * @param path the path to validate * @throws IllegalArgumentException if path is invalid */ public static void validateSmbPath(String path) { if (path == null) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ClassTraversalUtil.java
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/Traverser.java
*/ package org.codelibs.core.io; /** * Object representing a collection of classes or resources. * * @author koichik * @see TraversalUtil */ public interface Traverser { /** * Returns <code>true</code> if the class file corresponding to the specified class name exists in the resources handled by this instance. * <p>Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 2.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java
assertArgumentNotNull("handler", handler); forEach(rootDir, null, handler); } /** * Traverses resources contained in the file system. * <p>
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/TraversalUtil.java
*/ public abstract class TraversalUtil { /** * Do not instantiate. */ protected TraversalUtil() { } /** An empty array of {@link Traverser}. */ protected static final Traverser[] EMPTY_ARRAY = new Traverser[0]; private static final Logger logger = Logger.getLogger(TraversalUtil.class); /** Mapping from URL protocol (as key) to {@link TraverserFactory} (as value). */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 18.6K bytes - Viewed (0)