Skip to content

Commit 12fb563

Browse files
authored
Mark 3.7.2 (CTFd#2559)
1 parent d95e2a7 commit 12fb563

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 3.7.2 / 2024-06-18
2+
3+
**Security**
4+
5+
- Patches an issue where on certain browsers flags could be leaked with admin interaction on a malicious page
6+
7+
**API**
8+
9+
- Disable returning 404s in listing pages with pagination
10+
- Instead of returning 404 these pages will now return 200
11+
- For API endpoints, the response will be a 200 with an empty listing instead of a 404
12+
13+
**Deployment**
14+
15+
- CTFd will now add the `Cross-Origin-Opener-Policy` response header to all responses with the default value of `same-origin-allow-popups`
16+
- Add `CROSS_ORIGIN_OPENER_POLICY` setting to control the `Cross-Origin-Opener-Policy` header
17+
118
# 3.7.1 / 2024-05-31
219

320
**Admin Panel**

CTFd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from CTFd.utils.updates import update_check
3333
from CTFd.utils.user import get_locale
3434

35-
__version__ = "3.7.1"
35+
__version__ = "3.7.2"
3636
__channel__ = "oss"
3737

3838

CTFd/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class ServerConfig(object):
141141
PERMANENT_SESSION_LIFETIME: int = config_ini["security"].getint("PERMANENT_SESSION_LIFETIME") \
142142
or 604800
143143

144-
CROSS_ORIGIN_OPENER_POLICY: str = empty_str_cast(config_ini["security"]["CROSS_ORIGIN_OPENER_POLICY"]) \
144+
CROSS_ORIGIN_OPENER_POLICY: str = empty_str_cast(config_ini["security"].get("CROSS_ORIGIN_OPENER_POLICY")) \
145145
or "same-origin-allow-popups"
146146

147147
"""

0 commit comments

Comments
 (0)