CVE-2016-10549
Description
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.
Weakness
- CWE-284: Improper Access Control
Timeline
- 2018-05-31Published by the CNA20:00 UTC
- 2019-02-18GitHub advisory published (GHSA-qmv4-jgp7-mf68)263 days after publication
Exploit and advisory records
GitHub advisory GHSA-qmv4-jgp7-mf68, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm sails | before 0.12.7 | 0.12.7 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| sailsjs sails | through 0.12.7no fix listed | not listed |
References
- http://sailsjs.org/documentation/concepts/security/cors
- http://sailsjs.org/documentation/reference/configuration/sails-config-cors
- https://nodesecurity.io/advisories/148
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2016-10549'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2016-10549'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2016-10549'curl 'https://api.contrastcyber.com/cve_products/CVE-2016-10549'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).