commit | 9046b8480525382ca99d00b737d890977ac0d2f9 | [log] [tgz] |
---|---|---|
author | Rohan Shah <shahrk@google.com> | Wed Aug 17 11:23:26 2016 -0700 |
committer | gitbuildkicker <android-build@google.com> | Thu Aug 25 21:56:27 2016 -0700 |
tree | 2cb24339bd8414d5662606bfa9b78edcd195b029 | |
parent | cb2dfe43f25cb0c32cc73aa4569c0a5186a4ef43 [diff] |
Limit account id and id to longs The security issue occurs because id is allowed to be an arbitrary path instead of being limited to what it is -- a long. Both id and account id are now parsed into longs (and if either fails, an error will be logged and null will be returned). Tested/verified error is logged using the reported attack. BUG=30745403 Change-Id: Ia21418545bbaeb96fb5ab6c3f4e71858e57b8684 (cherry picked from commit 9794d7e8216138adf143a3b6faf3d5683316a662)