GHSA-WWRJ-35W6-77FF
Vulnerability from github – Published: 2020-08-04 14:54 – Updated: 2021-01-07 23:42Impact
Versions prior to version v1.05 are affected by a CSRF vulnerability, as there is no CSRF mitigation (Tokens etc.). The fix introduced in version v1.05 unintentionally breaks uploading so version v1.0.7 is the fixed version.
This is patched by implementing Double submit.
The CSRF attack would require you to navigate to a malicious site while you have an active session with Save-Server (Session key stored in cookies). The malicious user would then be able to perform some actions, including: - Upload file - Delete file - Add redirect
If you are logged in as root, this attack is significantly more severe. They can (in addition to the above):
- Create users
- Delete users
- Update users (change password)
If they updated the password of a user, that user's files would then be available. If the root password is updated, all files would be visible if they logged in with the new password.
Note that due to the same origin policy malicious actors cannot view the gallery or the response of any of the methods, nor be sure they succeeded.
Patches
This issue has been patched. Update to version v1.0.7 or above to benefit from this fix.
Workarounds
None. You should upgrade.
References
What is CSRF: https://owasp.org/www-community/attacks/csrf Fix type: https://medium.com/cross-site-request-forgery-csrf/double-submit-cookie-pattern-65bb71d80d9f
For more information
If you have any questions or comments about this advisory: * Open an issue in Save-server * Email us at hi@nezto.re * Join our discord (preferred): Invite
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c 1.0.5"
},
"package": {
"ecosystem": "npm",
"name": "save-server"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.7"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2020-15135"
],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"github_reviewed": true,
"github_reviewed_at": "2020-08-04T14:53:13Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "### Impact\nVersions prior to version v1.05 are affected by a CSRF vulnerability, as there is no CSRF mitigation (Tokens etc.). The fix introduced in version v1.05 unintentionally breaks uploading so version v1.0.7 is the fixed version.\n\nThis is patched by implementing [Double submit](https://medium.com/cross-site-request-forgery-csrf/double-submit-cookie-pattern-65bb71d80d9f).\n\nThe CSRF attack would require you to navigate to a malicious site while you have an active session with Save-Server (Session key stored in cookies). The malicious user would then be able to perform some actions, including:\n- Upload file\n- Delete file\n- Add redirect\n\n\n#### If you are logged in as root, this attack is significantly more severe. They can (in addition to the above):\n- Create users\n- Delete users\n- Update users (change password)\n\nIf they updated the password of a user, that user\u0027s files would then be available. If the root password is updated, all files would be visible if they logged in with the new password.\n\nNote that due to the same origin policy malicious actors cannot view the gallery or the response of any of the methods, nor be sure they succeeded. \n### Patches\nThis issue has been patched. Update to version v1.0.7 or above to benefit from this fix.\n\n### Workarounds\nNone. You should upgrade.\n\n### References\nWhat is CSRF: https://owasp.org/www-community/attacks/csrf\nFix type: https://medium.com/cross-site-request-forgery-csrf/double-submit-cookie-pattern-65bb71d80d9f\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Save-server](https://github.com/Neztore/save-server/)\n* Email us at [hi@nezto.re](mailto:hi@nezto.re)\n* Join our discord (preferred): [Invite](https://discord.gg/QevWabU) ",
"id": "GHSA-wwrj-35w6-77ff",
"modified": "2021-01-07T23:42:18Z",
"published": "2020-08-04T14:54:08Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/Neztore/save-server/security/advisories/GHSA-wwrj-35w6-77ff"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15135"
},
{
"type": "WEB",
"url": "https://medium.com/cross-site-request-forgery-csrf/double-submit-cookie-pattern-65bb71d80d9f"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/package/save-server"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L",
"type": "CVSS_V3"
}
],
"summary": "CSRF vulnerability in save-server"
}
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.