mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Some improvements
This commit is contained in:
parent
7086cfa277
commit
8aa0615293
2 changed files with 348 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ export function getCombinedCaBundlePath() {
|
|||
function readUserCertificateFile(certPath) {
|
||||
try {
|
||||
// Validate path is a string and not attempting path traversal
|
||||
if (typeof certPath !== "string" || certPath.includes("..") || certPath.startsWith("/")) {
|
||||
if (typeof certPath !== "string" || certPath.includes("..")) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue