We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 375944c commit e753259Copy full SHA for e753259
src/main/java/com/cloudbees/plugins/credentials/CredentialsStoreAction.java
@@ -586,7 +586,7 @@ public String getRelativePath() {
586
}
587
// Validate the relative path as a security hardening
588
// There is no known attack vector here, but just in case as it does control what the form action is.
589
- if (!relativePath.startsWith("/")) {
+ if (!(relativePath.startsWith("/") || relativePath.startsWith("../"))) {
590
return null;
591
592
// Prevent protocol-relative URLs
0 commit comments