Skip to content

Commit

Permalink
Encode backticks in XSS payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Mar 23, 2020
1 parent d809bbd commit 3d3a5cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/generators/ctfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const options = require('../options')
function createCtfdExport (challenges, { insertHints, insertHintUrls, ctfKey }) {
function insertChallenge (data, challenge) {
const score = calculateScore(challenge.difficulty)
challenge.description = challenge.description.replace('`xss`', '`xss`')
data.challenges.results.push(
{
id: challenge.id,
Expand Down

0 comments on commit 3d3a5cb

Please sign in to comment.