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

chore: upgrade freemarker #8670

Merged
merged 2 commits into from
Jun 7, 2024
Merged

chore: upgrade freemarker #8670

merged 2 commits into from
Jun 7, 2024

Conversation

jgomer2001
Copy link
Contributor

Prepare


Description

Target issue

closes #8669

Implementation Details


Test and Document the changes

  • Static code analysis has been run locally and issues have been fixed
  • Relevant unit and integration tests have been added/updated
  • Relevant documentation has been updated if any (i.e. user guides, installation and configuration guides, technical design docs etc)

Signed-off-by: jgomer2001 <bonustrack310@gmail.com>
Copy link

dryrunsecurity bot commented Jun 6, 2024

Hi there 👋, @DryRunSecurity here, below is a summary of our analysis and findings.

DryRun Security Status Findings
Configured Codepaths Analyzer 0 findings
Secrets Analyzer 0 findings
Sensitive Files Analyzer 1 finding
Authn/Authz Analyzer 0 findings
AppSec Analyzer 0 findings

Note

🟢 Risk threshold not exceeded.

Change Summary (click to expand)

The following is a summary of changes in this pull request made by me, your security buddy 🤖. Note that this summary is auto-generated and not meant to be a definitive list of security issues but rather a helpful summary from a security perspective.

Summary:

The changes in this pull request primarily focus on updating the Freemarker dependency version and maintaining the core functionality of the Transpiler class in the Agama project. From an application security perspective, these changes do not introduce any obvious security vulnerabilities, but there are a few areas that require further review and consideration:

  1. Dependency Update: The update to the Freemarker library version from 2.3.32 to 2.3.33 is a minor version update, which typically indicates bug fixes or minor improvements. It's important to review the release notes for the new version to ensure that there are no known security vulnerabilities that have been addressed.

  2. Utility Script: The code loads a utility script named "util.js" from the classpath, and it's essential to review the contents of this script to ensure there are no security vulnerabilities or sensitive information being exposed.

  3. Input Validation: The Transpiler class performs some input validation checks, which is a good security practice. However, it's crucial to ensure that the input DSL code is properly validated and sanitized to prevent potential code injection or other security issues.

  4. Sandboxing: The generated JavaScript code is intended to be executed by the Agama flow engine, and it's essential to ensure that this execution is properly sandboxed and that the generated code does not introduce any security vulnerabilities or allow for unauthorized access or escalation of privileges.

Files Changed:

  1. agama/transpiler/pom.xml: This file has been updated to include a dependency version change for the Freemarker library, from 2.3.32 to 2.3.33. This is a minor version update, and it's important to review the release notes to ensure that there are no known security vulnerabilities.

  2. agama/transpiler/src/main/java/io/jans/agama/dsl/Transpiler.java: The changes in this file update the Freemarker configuration to use the latest stable version (2.3.33) and handle various settings related to exception handling, encoding, and template loading. The file also loads a utility script named "util.js" from the classpath, which should be reviewed for any security concerns.

Powered by DryRun Security

@mo-auto mo-auto added comp-agama Touching folder /agama kind-dependencies Pull requests that update a dependency file labels Jun 6, 2024
Copy link

sonarcloud bot commented Jun 6, 2024

@yurem yurem self-requested a review June 7, 2024 12:57
@yurem yurem merged commit 8b125a4 into main Jun 7, 2024
7 checks passed
@yurem yurem deleted the agama-issue_8669 branch June 7, 2024 12:58
Copy link

sonarcloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed for 'jans-linux-setup'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed for 'jans-core'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

sonarcloud bot commented Jun 7, 2024

Quality Gate Passed Quality Gate passed for 'jans-config-api-parent'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-agama Touching folder /agama kind-dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: update freemarker dependency
4 participants