Skip to content
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

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

dcleao
Copy link
Contributor

@dcleao dcleao commented Aug 1, 2024

@buildguy

This comment has been minimized.

@buildguy

This comment has been minimized.

Copy link

hitachivantarasonarqube bot commented Aug 1, 2024

@buildguy
Copy link
Collaborator

buildguy commented Aug 1, 2024

👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.

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.


@buildguy
Copy link
Collaborator

buildguy commented Aug 1, 2024

✅ Build finished in 24m 18s

Build 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;
Copy link
Contributor

@singletonc singletonc Aug 1, 2024

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,
Copy link
Contributor

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!
Copy link
Contributor

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,
Copy link
Contributor

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.

Copy link
Contributor

@NJtwentyone NJtwentyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good pr

@NJtwentyone NJtwentyone merged commit 43d6f13 into pentaho:master Aug 2, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants