Skip to content

Commit

Permalink
Sanitize URI inputs for SSRF vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurrell-r7 committed Jun 27, 2024
1 parent 7c2bd45 commit 1369939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function registerHandlers() {

let data;
try {
data = await refreshJit(profile);
data = await refreshJit(encodeURI(profile));
} catch (err) {
const errBody = JSON.stringify({
error_message: err?.message || 'unknown',
Expand Down

0 comments on commit 1369939

Please sign in to comment.