able to validate a Fernet token with garbage at the end (cryptography limitation)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I am able to verify Fernet tokens that contain garbage at the end, not so with UUID tokens.
For example.
UUID:
curl -H "X-Auth-
Works
curl -H "X-Auth-
{"error": {"message": "Could not find token: 84db9247b27d4fe
Fernet on the other hand happily validates it even with garbage and even inserts -GARBAGE into the ID.
curl -H "X-Auth-
"token": {
],
"id": "gAAAAABVZnaEJu
}
},
curl -H "X-Auth-
"token": {
],
"id": "gAAAAABVZnaEJu
}
},
summary: |
- able to verify a Fernet token with garbage at the end + able to validate a Fernet token with garbage at the end |
tags: | added: fernet |
Changed in keystone: | |
assignee: | nobody → Ron De Rose (ronald-de-rose) |
Changed in keystone: | |
assignee: | Ron De Rose (ronald-de-rose) → nobody |
Changed in keystone: | |
status: | Confirmed → Invalid |
status: | Invalid → Confirmed |
Is there supposed to be a "-GARBAGE" appended at the end of the third curl request's path? (Or is there supposed to be a fourth curl example? There's two incomplete JSON responses at the end of the bug description that differ only in the presence of "-GARBAGE" in the returned token->id.)