{"id":"GHSA-wvh7-5p38-2qfc","aliases":[],"url":"https://o3.security/vulnerability/GHSA-wvh7-5p38-2qfc","summary":"Storing Password in Local Storage","details":"The `setPassword` method (http://parseplatform.org/Parse-SDK-JS/api/2.9.1/Parse.User.html#setPassword) stores the user's password in localStorage as raw text making it vulnerable to anyone with access to your localStorage. We believe this is the only time that password is stored at all. In the documentation under Users > Signing Up, it clearly states, \"We never store passwords in plaintext, nor will we ever transmit passwords back to the client in plaintext.\"\n\nExample Code:\n```js\nasync () => {\n    const user = Parse.User.current()\n    if (user) {\n        user.setPassword('newpass')\n        await user.save()\n    }\n}\n```\nAfter running the above code, the new password will be stored in localStorage as a property named \"password\".\n\nProposed Solution:\nBefore saving anything to localStorage, Parse should strip out any properties named \"password\" that are attempting to be stored with a Parse.User type object.\n\nConfiguration:\nParse SDK: 2.9.1\nParse Server: 3.9.0","published":"2020-07-23T18:20:10Z","modified":"2021-09-22T21:05:43Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"parse","fixedVersion":"2.10.0"}],"fix":{"url":"https://github.com/parse-community/Parse-SDK-JS/commit/d1106174571b699f972929dd7cbb8e45b5283cbb","label":"parse-community/Parse-SDK-JS@d110617"},"references":[{"type":"WEB","url":"https://github.com/parse-community/Parse-SDK-JS/security/advisories/GHSA-wvh7-5p38-2qfc"},{"type":"WEB","url":"https://github.com/parse-community/Parse-SDK-JS/commit/d1106174571b699f972929dd7cbb8e45b5283cbb"},{"type":"PACKAGE","url":"https://github.com/parse-community/Parse-SDK-JS"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-09-22T21:05:43Z"}}