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

Fix AppSec Findings CWE-22 and CWE-476 #1528

Merged

Conversation

naveentatikonda
Copy link
Member

Description

Fix the following AppSec findings:

  • CWE-22 is used to identify an "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"
    weakness.

  • CWE-476 is used to identify a "NULL Pointer Dereference" weakness.

Check List

  • All tests pass
  • Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Mar 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 85.09%. Comparing base (1303182) to head (dee5cca).
Report is 4 commits behind head on main.

Files Patch % Lines
...main/java/org/opensearch/knn/indices/ModelDao.java 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1528      +/-   ##
============================================
- Coverage     85.11%   85.09%   -0.02%     
- Complexity     1281     1291      +10     
============================================
  Files           168      169       +1     
  Lines          5232     5260      +28     
  Branches        495      499       +4     
============================================
+ Hits           4453     4476      +23     
- Misses          572      573       +1     
- Partials        207      211       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Naveen Tatikonda <[email protected]>
@naveentatikonda naveentatikonda changed the title Fix AppSec Findings Fix AppSec Findings CWE-22 and CWE-476 Mar 14, 2024
@naveentatikonda naveentatikonda merged commit bfcf7dc into opensearch-project:main Mar 14, 2024
52 of 53 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 14, 2024
… Dereference) (#1528)

Signed-off-by: Naveen Tatikonda <[email protected]>
(cherry picked from commit bfcf7dc)
naveentatikonda added a commit that referenced this pull request Mar 14, 2024
… Dereference) (#1528) (#1539)

Signed-off-by: Naveen Tatikonda <[email protected]>
(cherry picked from commit bfcf7dc)

Co-authored-by: Naveen Tatikonda <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants