apache / apache/shenyu

[risk] Path traversal in ShenyuPluginPathBuilder

Open
#5,603 1 comment 0 reactions 0 assignees View on GitHub
type: question
Dominant language
Java
Stars
8.8k
Forks
3.1k
Avg merge
7d 1h
Merged PRs (30d)
85

Description

### Question

/**
* Gets plugin file.
*
* @param path the path
* @return the plugin jar file.
*/
public static File getPluginFile(final String path) {
String pluginPath = getPluginPath(path);
return new File(pluginPath);
}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating ShenyuPluginPathBuilder and reading getPluginFile(String) together with the getPluginPath(path) implementation. Reproduce the reported path-traversal case, then identify the existing security tests or test location for this builder; done means plugin paths cannot escape the intended directory and regression coverage verifies the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.