You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5/ Also shouldn't firstNameSafeString and website be encoded with encodeForHTMLAttribute instead of encodeForHTML and encodeForURL? The current code seems to contradict the tutorial.
Hi,
I noticed that commit 7c293e7 has broken the XSS example.
1/ The
website
property is not saved in the database. Thus it will never be displayed.NodeGoat/app/routes/profile.js
Lines 82 to 91 in e2dffdb
2/ The
website
property is not returned after an updateNodeGoat/app/routes/profile.js
Lines 65 to 75 in e2dffdb
3/ The
profile.html
page still usesfirstNameSafeString
as an url, which is confusing.NodeGoat/app/views/profile.html
Line 78 in e2dffdb
4/ The
profile.js:displayProfile
does not returnfirstNameSafeString
anymoreNodeGoat/app/routes/profile.js
Lines 28 to 36 in e2dffdb
5/ Also shouldn't
firstNameSafeString
andwebsite
be encoded withencodeForHTMLAttribute
instead ofencodeForHTML
andencodeForURL
? The current code seems to contradict the tutorial.NodeGoat/app/routes/profile.js
Line 31 in e2dffdb
6/ the
firstname
is not sanitized after an update.NodeGoat/app/routes/profile.js
Line 64 in e2dffdb
The text was updated successfully, but these errors were encountered: