-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PPP-4772] RCE injection via connection's JNDI database name #5674
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Quality Gate passedIssues Measures |
Note:Frogbot also supports Contextual Analysis, Secret Detection, IaC and SAST Vulnerabilities Scanning. This features are included as part of the JFrog Advanced Security package, which isn't enabled on your system. |
✅ Build finished in 24m 18sBuild command: mvn clean verify -B -e -Daudit -Djs.no.sandbox -pl \
assemblies/pentaho-solutions,core 👌 All tests passed! Tests run: 570, Failures: 0, Skipped: 0 Test Results ℹ️ This is an automatic message |
} | ||
|
||
// Always non-null. | ||
throw firstNe; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sonar is complaining about this potentially being null even though it cannot be. Just mentioning, not a blocker.
// First, try what they ask for... | ||
dsName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good java doc comments list of candidatesNames prefixes
|
||
@Test( expected = DBDatasourceServiceException.class ) | ||
public void testGetJndiDataSourceThrowsGivenNameWithDisallowedJavaScheme() throws Exception { | ||
// This tests that it is possible to disable the java scheme via configuration! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good tests
* @throws ClassCastException If the given data source name resolves is that of a resource which does not implement | ||
* {@link DataSource}. | ||
*/ | ||
private static DataSource lookupJndiDataSourceByName( Context context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code is really readable and maintainable now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good pr
Issue: https://hv-eng.atlassian.net/browse/PPP-4772
Merge with:
/cc @pentaho/hoth