Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: Unsafe File Access Could Allow Unauthorized Data Retrieval in backend/internal/certificate.js#4640

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

kira-offgrid
Copy link

Context and Purpose:

This PR automatically remediates a security vulnerability:

  • Description: Detected possible user input going into apath.join orpath.resolve function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first.
  • Rule ID: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal
  • Severity: MEDIUM
  • File: backend/internal/certificate.js
  • Lines Affected: 365 - 365

This change is necessary to protect the application from potential security risks associated with this vulnerability.

Solution Implemented:

The automated remediation process has applied the necessary changes to the affected code inbackend/internal/certificate.js to resolve the identified issue.

Please review the changes to ensure they are correct and integrate as expected.

…traversal.path-join-resolve-traversal-backend-internal-certificate.js
@nginxproxymanagerci
Copy link

CI Error:

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)certbot-node: Pulling from nginxproxymanager/nginx-fullDigest: sha256:3cdbaf1f3e0206689c91098a9147a4ccf2a1a563ab42dbf662a068b186e9832dStatus: Image is up to date for nginxproxymanager/nginx-full:certbot-nodedocker.io/nginxproxymanager/nginx-full:certbot-node�[1;34m❯ �[1;36mTesting backend ...�[0myarn install v1.22.22[1/4] Resolving packages...[2/4] Fetching packages...[3/4] Linking dependencies...warning " > @apidevtools/swagger-parser@10.1.0" has unmet peer dependency "openapi-types@>=7".[4/4] Building fresh packages...Done in 38.58s.yarn run v1.22.22$ /app/node_modules/.bin/eslint ./app/internal/certificate.js  33:10  error  Parsing error: Identifier 'sanitizePath' has already been declared✖ 1 problem (1 error, 0 warnings)info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.error Command failed with exit code 1.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@kira-offgrid

[8]ページ先頭

©2009-2025 Movatter.jp