Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXd3cmotMzV3Ni03N2Zm

CSRF vulnerability in save-server

Impact

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:

If you are logged in as root, this attack is significantly more severe. They can (in addition to the above):

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:

Permalink: https://github.com/advisories/GHSA-wwrj-35w6-77ff
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXd3cmotMzV3Ni03N2Zm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 4 years ago
Updated: over 1 year ago


CVSS Score: 6.7
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L

Identifiers: GHSA-wwrj-35w6-77ff, CVE-2020-15135
References: Repository: https://github.com/Neztore/save-server
Blast Radius: 1.0

Affected Packages

npm:save-server
Dependent packages: 0
Dependent repositories: 0
Downloads: 82 last month
Affected Version Ranges: < 1.0.5
Fixed in: 1.0.7
All affected versions: 1.0.0, 1.0.2, 1.0.4
All unaffected versions: 1.0.6, 1.0.7, 1.0.8, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4