-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix profile xss #449
base: develop
Are you sure you want to change the base?
Fix profile xss #449
Changes from all commits
1de29c2
a4ae13d
4bde973
7df6601
b6a4c7c
52a5c73
82383b4
03d1885
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ <h1>@profile.fullName</h1> | |
} else { | ||
@if(ownProfile){ | ||
<div id="prf-first-name" class="text-left inline"> | ||
<h1 id="first-name-title" class="inline" style="cursor:pointer" title="Click to edit user's first name.">@Html(profile.firstName)</h1> | ||
<h1 id="first-name-title" class="inline" style="cursor:pointer" title="Click to edit user's first name.">@Html(escapeString("<script>alert('XSS')</script>"))</h1> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also shouldn't this be profile.firstName still? Looks like you might've pushed an temporary test to this PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Last thing, there might be other places with @html tag, could you also apply the same fix to those? |
||
<div id="h-edit-first" class="hiddencomplete" title="Click to edit user's first name."> | ||
<a href="javascript:updateFirstLastName()"></a> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ services: | |
|
||
# main clowder application | ||
clowder: | ||
image: clowder/clowder:${CLOWDER_VERSION:-latest} | ||
image: clowder:bugfix | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again this looks like a temp commit, should it revert back to the original image? |
||
restart: unless-stopped | ||
networks: | ||
- clowder | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason this logic is needed here?