Compare commits
21 Commits
v2.6.1-rel
...
v2.6.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf527d9c26 | ||
|
|
b96319c7b8 | ||
|
|
04938855bb | ||
|
|
a702739d01 | ||
|
|
dcd962ad16 | ||
|
|
e42770e852 | ||
|
|
1da193f34b | ||
|
|
d0113dd2cc | ||
|
|
cf4f6ed224 | ||
|
|
de5808e998 | ||
|
|
fe433dee7b | ||
|
|
598968bc92 | ||
|
|
91e44a78c1 | ||
|
|
98ca5e972d | ||
|
|
fe06e4a34d | ||
|
|
bcf3ecc15c | ||
|
|
dda23b35cb | ||
|
|
43e33c1a12 | ||
|
|
e06bd4d176 | ||
|
|
98e9df8a23 | ||
|
|
3ac893ad50 |
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,13 +1,5 @@
|
||||
# Change Log
|
||||
## 2.6.1
|
||||
* Fix: CVE-2022-42731: related to the possibility of registration replay attack.
|
||||
Thanks to 'SSE (Secure Systems Engineering)'
|
||||
|
||||
## 2.5.1
|
||||
* Fix: CVE-2022-42731: related to the possibility of registration replay attack.
|
||||
Thanks to 'SSE (Secure Systems Engineering)'
|
||||
|
||||
## 2.6.0
|
||||
## 2.6.0 (dev)
|
||||
* Adding Backup Recovery Codes (Recovery) as a method.
|
||||
Thanks to @Spitfireap for work, and @peterthomassen for guidance.
|
||||
* Added: `RECOVERY_ITERATION` to set the number of iteration when hashing recovery token
|
||||
|
||||
@@ -196,8 +196,6 @@ function some_func() {
|
||||
* [AndreasDickow](https://github.com/AndreasDickow)
|
||||
* [mnelson4](https://github.com/mnelson4)
|
||||
* [ezrajrice](https://github.com/ezrajrice)
|
||||
* [Spitfireap](https://github.com/Spitfireap)
|
||||
* [peterthomassen](https://github.com/peterthomassen)
|
||||
|
||||
|
||||
# Security contact information
|
||||
|
||||
@@ -16,7 +16,7 @@ from .views import login, reset_cookie
|
||||
import datetime
|
||||
from .Common import get_redirect_url
|
||||
from django.utils import timezone
|
||||
from django.http import JsonResponse
|
||||
|
||||
|
||||
def recheck(request):
|
||||
"""Starts FIDO2 recheck"""
|
||||
@@ -49,15 +49,13 @@ def begin_registeration(request):
|
||||
def complete_reg(request):
|
||||
"""Completes the registeration, called by API"""
|
||||
try:
|
||||
if not "fido_state" in request.session:
|
||||
return JsonResponse({'status': 'ERR', "message": "FIDO Status can't be found, please try again"})
|
||||
data = cbor.decode(request.body)
|
||||
|
||||
client_data = CollectedClientData(data['clientDataJSON'])
|
||||
att_obj = AttestationObject((data['attestationObject']))
|
||||
server = getServer()
|
||||
auth_data = server.register_complete(
|
||||
request.session.pop('fido_state'),
|
||||
request.session['fido_state'],
|
||||
client_data,
|
||||
att_obj
|
||||
)
|
||||
@@ -81,7 +79,7 @@ def complete_reg(request):
|
||||
client.captureException()
|
||||
except:
|
||||
pass
|
||||
return JsonResponse({'status': 'ERR', "message": "Error on server, please try again later"})
|
||||
return HttpResponse(simplejson.dumps({'status': 'ERR', "message": "Error on server, please try again later"}))
|
||||
|
||||
|
||||
def start(request):
|
||||
|
||||
Reference in New Issue
Block a user