Skip to content

Commit dcf57a7

Browse files
authored
Merge pull request #551 from ubccr/fix-unprotected-eval
Fix unprotected eval
2 parents d3b1da6 + 4f6aeb9 commit dcf57a7

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@
2626
- James Kruth
2727
- Steve Anthony
2828
- Jim Culbert
29+
- Alex Tucker

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ColdFront Changelog
22

3+
## [1.1.5] - 2023-07-12
4+
5+
- SECURITY BUG FIX: Unprotected eval when adding publication. [#551](https://github.com/ubccr/coldfront/pull/551)
6+
- Documentation improvements
7+
38
## [1.1.4] - 2023-02-11
49

510
- Datepicker changed to flatpickr. Remove jquery-ui [#438](https://github.com/ubccr/coldfront/issues/438)

coldfront/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
__version__ = '1.1.4'
4+
__version__ = '1.1.5'
55
VERSION = __version__
66

77

coldfront/core/publication/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import ast
12
import re
23
import uuid
34
import requests
@@ -203,7 +204,7 @@ def dispatch(self, request, *args, **kwargs):
203204
return super().dispatch(request, *args, **kwargs)
204205

205206
def post(self, request, *args, **kwargs):
206-
pubs = eval(request.POST.get('pubs'))
207+
pubs = ast.literal_eval(request.POST.get('pubs'))
207208
project_pk = self.kwargs.get('project_pk')
208209

209210
project_obj = get_object_or_404(Project, pk=project_pk)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ arrow==1.2.3
22
bibtexparser==1.4.0
33
blessed==1.20.0
44
chardet==5.1.0
5-
Django==3.2.17
5+
Django==3.2.20
66
django-crispy-forms==1.14.0
77
Faker==11.3.0
88
fontawesome-free==5.15.4

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'bibtexparser==1.4.0',
2929
'blessed==1.20.0',
3030
'chardet==5.1.0',
31-
'Django==3.2.17',
31+
'Django==3.2.20',
3232
'django-crispy-forms==1.14.0',
3333
'Faker==11.3.0',
3434
'fontawesome-free==5.15.4',

0 commit comments

Comments
 (0)