- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for traversal (2.25 sec)
-
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/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/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)