Advisory

GHSA-g4xj-wcq6-qwx5

Also known as: CVE-2020-7697

Summary

Code injection in mock2easy

Details

This affects all versions up to and including version 0.0.24 of package mock2easy. a malicious user could inject commands through the _data variable:

Affected Area

require('../server/getJsonByCurl')(mock2easy, function(error, stdout) {
    if (error) {
        return res.json(500, error);
    }
    res.json(JSON.parse(stdout));
}, '', _data.interfaceUrl, query, _data.cookie, _data.interfaceType);```

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-05-06 18:25 UTC
Modified
2023-11-08 04:04 UTC

Affected packages and fixes

mock2easy

npm · All systems

Affected

  • introduced 0, last affected 0.0.24 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences