GHSA-wwrj-35w6-77ff

Suggest an improvement
Source
https://github.com/advisories/GHSA-wwrj-35w6-77ff
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-wwrj-35w6-77ff/GHSA-wwrj-35w6-77ff.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-wwrj-35w6-77ff
Aliases
Related
Published
2020-08-04T14:54:08Z
Modified
2026-01-30T00:40:24.404715Z
Severity
  • 6.7 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L CVSS Calculator
Summary
CSRF vulnerability in save-server
Details

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: - 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

Database specific
{
    "severity": "MODERATE",
    "github_reviewed_at": "2020-08-04T14:53:13Z",
    "cwe_ids": [
        "CWE-352"
    ],
    "github_reviewed": true,
    "nvd_published_at": null
}
References

Affected packages

npm / save-server

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.7

Database specific

last_known_affected_version_range
"< 1.0.5"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-wwrj-35w6-77ff/GHSA-wwrj-35w6-77ff.json"