Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
}
// Validate the relative path as a security hardening
// There is no known attack vector here, but just in case as it does control what the form action is.
if (!relativePath.startsWith("/")) {
if (!(relativePath.startsWith("/") || relativePath.startsWith("../"))) {

Check warning on line 589 in src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Partially covered line

Line 589 is only partially covered, 3 branches are missing
return null;
}
// Prevent protocol-relative URLs
Expand Down
Loading