Skip to content

Commit

Permalink
Fix XSS vulnerability in error page
Browse files Browse the repository at this point in the history
  • Loading branch information
krateng committed Dec 17, 2023
1 parent 12064f6 commit febaff9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions dev/releases/3.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ minor_release_name: "Nicole"
- "[Technical] Upgraded all third party modules to use requests module and send User Agent"
3.2.2:
notes:
- "[Security] Fixed XSS vulnerability in error page (Disclosed by https://github.com/NULLYUKI)"
- "[Architecture] Reworked the default directory selection"
- "[Feature] Added option to show scrobbles on tile charts"
- "[Bugfix] Fixed Last.fm authentication"
2 changes: 1 addition & 1 deletion maloja/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# you know what f*ck it
# this is hardcoded for now because of that damn project / package name discrepancy
# i'll fix it one day
VERSION = "3.2.1"
VERSION = "3.2.2"
HOMEPAGE = "https://github.com/krateng/maloja"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ countas Pristin V Pristin

# CLC
countas Sorn CLC
countas Yeeun CLC
countas Seungyeon CLC

# Popular Remixes
artistintitle Areia Remix Areia
Expand Down
4 changes: 2 additions & 2 deletions maloja/web/jinja/error.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<div style="background-image:url('/favicon.png')"></div>
</td>
<td class="text">
<h1>{{ error_desc }}</h1><br/>
{{ error_full_desc }}
<h1>{{ error_desc | e }}</h1><br/>
{{ error_full_desc | e }}

</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "malojaserver"
version = "3.2.1"
version = "3.2.2"
description = "Self-hosted music scrobble database"
readme = "./README.md"
requires-python = ">=3.10"
Expand Down

0 comments on commit febaff9

Please sign in to comment.