{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"HIGH\"}"}}}], "affected": [{"vendor": "npm", "product": "sails", "versions": [{"status": "affected", "version": "0", "lessThan": "0.12.7", "versionType": "semver"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://sailsjs.org/documentation/concepts/security/cors"}, {"url": "http://sailsjs.org/documentation/reference/configuration/sails-config-cors"}, {"url": "https://github.com/balderdashy/sails"}, {"url": "https://github.com/balderdashy/sails/commit/0057123a0321be6758845abbeb4290bf418ce542"}, {"url": "https://github.com/balderdashy/sails/releases/tag/v0.12.7"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-10549"}, {"url": "https://www.npmjs.com/advisories/148"}], "descriptions": [{"lang": "en", "value": "Affected versions of `sails` have an issue with the CORS configuration where the value of the origin header is reflected as the value for the `Access-Control-Allow-Origin` header. This may allow an attacker to make AJAX requests to vulnerable hosts through cross-site scripting or a malicious HTML Document, effectively bypassing the Same Origin Policy. \n\n## Mitigating Factors\n\nThis is only an issue when `allRoutes` is set to `true` and `origin` is set to `*` or left commented out in the sails CORS config file. \n\nThe problem can be compounded when the cors `credentials` setting is not provided, because at that point authenticated cross domain requests are possible.\n\n\n## Recommendation\n\nUpdate to version 0.12.7 or later.\n\nAs this vulnerability is primarily a user error, the patch for the vulnerability will simply cause the application to write an error message to the console when a vulnerable configuration is used in a production environment.\n\nWriting a proper CORS configuration is still the responsibility of the user, so it is necessary to check for the error message after installing the patch. Be sure you are not using `allRoutes: true` with `origin:'*'`, and that you uncomment `origin` and set it to a reasonable value. Ensure that if `origin` is set to `*` that you truly mean for all other websites to be able to make cross-domain requests to your API.\n\nLikewise, ensure `credentials` is uncommented out and set to the appropriate value. Make sure to explicitly set which origins may request resources via CORS."}, {"lang": "en", "value": "Sails before 0.12.7 vulnerable to Broken CORS"}], "providerMetadata": {"orgId": "386269d4-a6c6-4eaa-bf8e-bc0b0d010558", "shortName": "npm", "dateUpdated": "2019-02-18T23:40:10Z", "x_subShortName": "npm"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 2.1, "accessVector": "NETWORK", "vectorString": "AV:N/AC:H/Au:S/C:N/I:P/A:N", "authentication": "SINGLE", "integrityImpact": "PARTIAL", "accessComplexity": "HIGH", "availabilityImpact": "NONE", "confidentialityImpact": "NONE"}}, {"format": "CVSS", "cvssV3_0": {"scope": "CHANGED", "version": "3.0", "baseScore": 4.4, "attackVector": "NETWORK", "baseSeverity": "MEDIUM", "vectorString": "CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N", "integrityImpact": "LOW", "userInteraction": "REQUIRED", "attackComplexity": "HIGH", "availabilityImpact": "NONE", "privilegesRequired": "LOW", "confidentialityImpact": "LOW"}}], "affected": [{"cpes": ["cpe:2.3:a:sailsjs:sails:*:*:*:*:*:node.js:*:*"], "vendor": "sailsjs", "product": "sails", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "0.12.7"}], "platforms": ["node.js"], "defaultStatus": "unaffected"}], "references": [{"url": "https://nodesecurity.io/advisories/148", "tags": ["third-party-advisory"]}, {"url": "http://sailsjs.org/documentation/concepts/security/cors", "tags": ["vendor-advisory"]}, {"url": "http://sailsjs.org/documentation/reference/configuration/sails-config-cors", "tags": ["vendor-advisory"]}], "descriptions": [{"lang": "en", "value": "Sails is an MVC style framework for building realtime web applications. Version 0.12.7 and lower have an issue with the CORS configuration where the value of the origin header is reflected as the value for the Access-Control-Allow-Origin header. This would allow an attacker to make AJAX requests to vulnerable hosts through cross site scripting or a malicious HTML Document, effectively bypassing the Same Origin Policy. Note that this is only an issue when `allRoutes` is set to `true` and `origin` is set to `*` or left commented out in the sails CORS config file. The problem can be compounded when the cors `credentials` setting is not provided. At that point authenticated cross domain requests are possible."}, {"lang": "es", "value": "Sails es un framework de estilo MVC para construir aplicaciones web en tiempo real. Las versiones 0.12.7 y anteriores tienen un problema con la configuración CORS en la que el valor de la cabecera origin se refleja como el valor para la cabecera Access-Control-Allow-Origin. Esto permitiría que un atacante realice peticiones AJAX a hosts vulnerables mediante Cross-Site Scripting (XSS) o un documento HTML malicioso, omitiendo de forma efectiva la política de mismo origen. Esto solo es un problema cuando \"allRoutes\" se establece en \"true\" y \"origin\" se establece en \"*\" o se deja como comentario en el archivo de configuración CORS de Sails. El problema puede complicarse cuando la opción \"credentials\" de CORS no se proporciona. En ese punto, es posible realizar peticiones autenticadas de Cross Domain."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-284", "description": "CWE-284"}, {"lang": "en", "cweId": "CWE-79", "description": "CWE-79"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2018-05-31T20:29:01Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2016-10549", "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"}