Vulnerabilities

2 via 2 paths

Dependencies

376

Source

GitHub

Commit

94c3c699

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 2
  • 2
Severity
  • 3
  • 1
Status
  • 4
  • 0
  • 0

high severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: axios
  • Introduced through: node-ical@0.18.0

Detailed paths

  • Introduced through: magicmirror@MagicMirrorOrg/MagicMirror#94c3c699e8bf89e0466580960d5d32b745dd940c node-ical@0.18.0 axios@1.6.7
    Remediation: Upgrade to node-ical@0.19.0.

Overview

axios is a promise-based HTTP client for the browser and Node.js.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through unexpected behavior where requests for path-relative URLs get processed as protocol-relative URLs. An attacker can manipulate the server to make unauthorized requests by exploiting this behavior.

PoC


const axios = require('axios');

this.axios = axios.create({
  baseURL: 'https://userapi.example.com',
});

//userId = '12345';
userId = '/google.com'

this.axios.get(`/${userId}`).then(function (response) {
  console.log(`config.baseURL:  ${response.config.baseURL}`);
  console.log(`config.method:   ${response.config.method}`);
  console.log(`config.url:      ${response.config.url}`);
  console.log(`res.responseUrl: ${response.request.res.responseUrl}`);
});

Output:

config.baseURL:  https://userapi.example.com
config.method:   get
config.url:      //google.com
res.responseUrl: http://www.google.com/

Remediation

Upgrade axios to version 1.7.4 or higher.

References

high severity

AGPL-3.0 license

  • Module: @pm2/agent
  • Introduced through: pm2@5.4.3

Detailed paths

  • Introduced through: magicmirror@MagicMirrorOrg/MagicMirror#94c3c699e8bf89e0466580960d5d32b745dd940c pm2@5.4.3 @pm2/agent@2.0.4

AGPL-3.0 license

high severity

AGPL-3.0 license

  • Module: pm2
  • Introduced through: pm2@5.4.3

Detailed paths

  • Introduced through: magicmirror@MagicMirrorOrg/MagicMirror#94c3c699e8bf89e0466580960d5d32b745dd940c pm2@5.4.3

AGPL-3.0 license

medium severity

Server-Side Request Forgery (SSRF)

  • Vulnerable module: ip
  • Introduced through: express-ipfilter@1.3.2

Detailed paths

  • Introduced through: magicmirror@MagicMirrorOrg/MagicMirror#94c3c699e8bf89e0466580960d5d32b745dd940c express-ipfilter@1.3.2 ip@2.0.1

Overview

ip is a Node library.

Affected versions of this package are vulnerable to Server-Side Request Forgery (SSRF) via the isPublic function, which identifies some private IP addresses as public addresses due to improper parsing of the input. An attacker can manipulate a system that uses isLoopback(), isPrivate() and isPublic functions to guard outgoing network requests to treat certain IP addresses as globally routable by supplying specially crafted IP addresses.

Note

This vulnerability derived from an incomplete fix for CVE-2023-42282

Remediation

There is no fixed version for ip.

References