- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for traversal (2.13 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/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) -
src/main/java/jcifs/smb/NtStatus.java
int NT_STATUS_ACCOUNT_LOCKED_OUT = 0xC0000234; /** The remote system refused the network connection */ int NT_STATUS_CONNECTION_REFUSED = 0xC0000236; /** The pathname does not traverse a DFS junction */ int NT_STATUS_PATH_NOT_COVERED = 0xC0000257; /** The IO operation on the reparse point failed */ int NT_STATUS_IO_REPARSE_TAG_NOT_HANDLED = 0xC0000279;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 14.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtStatus.java
/** The object was not found */ int NT_STATUS_NOT_FOUND = 0xC0000225; /** The referenced account is currently locked out */ int NT_STATUS_ACCOUNT_LOCKED_OUT = 0xC0000234; /** The pathname does not traverse a DFS junction */ int NT_STATUS_PATH_NOT_COVERED = 0xC0000257; /** The IO operation on the reparse point failed */ int NT_STATUS_IO_REPARSE_TAG_NOT_HANDLED = 0xC0000279;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 13.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java
return BeanUtil.copyBeanToNewBean(src, destClass); } /** * Builds a comprehensive error message from a throwable and its causes. * This method traverses the cause chain and concatenates all error messages. * * @param t the throwable to build message from * @return a string containing all error messages in the cause chain */
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 15K bytes - Viewed (0)