{"id":"CVE-2016-10549","published":"2018-05-31T20:00:00Z","modified":"2024-09-17T01:46:02Z","title":"Sails is an MVC style framework for building realtime web applications","vendor":"HackerOne","product":"sails node module","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00624,"percentile":0.5087,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"http://sailsjs.org/documentation/concepts/security/cors","tags":["x_refsource_MISC"]},{"url":"https://nodesecurity.io/advisories/148","tags":["x_refsource_MISC"]},{"url":"http://sailsjs.org/documentation/reference/configuration/sails-config-cors","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":10.17}]},"vendorSlug":"hackerone","affectedVersions":[{"vendor":"HackerOne","product":"sails node module","versions":["<=0.12.7"]}],"affected":[{"ecosystem":"npm","package":"sails","vulnerableRanges":["<0.12.7"],"patched":["0.12.7"],"from":["GHSA-qmv4-jgp7-mf68"],"provenance":"source"}],"summary":{"text":"The Sails Node module, an MVC-style framework for realtime web applications, has a CORS misconfiguration in versions 0.12.7 and lower, where the request's Origin header is reflected into Access-Control-Allow-Origin, effectively bypassing the Same Origin Policy. An attacker can make AJAX requests to vulnerable hosts from a malicious HTML document or through cross-site scripting, and authenticated cross-domain requests are possible when allRoutes is true, origin is * or unset, and the CORS credentials setting is omitted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:17Z"},"euvd":{"id":"EUVD-2019-0332","exploited":false,"provenance":"source"}}