Break code:
{{{
signer = TimestampSigner(sep=":")
signer.unsign("kapo99:1ZfASc:UeDD0RvkDeC7qHNrI9HettcfRCQ", max_age=9999)
# Should be valid, but:
signer = TimestampSigner(sep="/")
signer.unsign("kapo99/1ZfASc/UeDD0RvkDeC7qHNrI9HettcfRCQ", max_age=9999)
# Fails with BadSignature
}}}
The secret key of my installation is (yes, not very original as a
development key):
{{{
SECRET_KEY="development_secret_key"
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25460>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
The signature "UeDD0RvkDeC7qHNrI9HettcfRCQ" is based on the value
"kapo99:1ZfASc". Now in the second case, the value as changed to
"kapo99/1ZfASc" so the same signature won't work.
--
Ticket URL: <https://code.djangoproject.com/ticket/25460#comment:1>