Skip to content

Commit

Permalink
Fix issues recognizing properly encoded URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
bkimminich committed Jun 3, 2021
1 parent 60e1d3d commit 04b6393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ exports.accessControlChallenges = () => ({ url }, res, next) => {
utils.solveIf(challenges.extraLanguageChallenge, () => { return utils.endsWith(url, '/tlh_AA.json') })
utils.solveIf(challenges.retrieveBlueprintChallenge, () => { return utils.endsWith(url, cache.retrieveBlueprintChallengeFile) })
utils.solveIf(challenges.securityPolicyChallenge, () => { return utils.endsWith(url, '/security.txt') })
utils.solveIf(challenges.missingEncodingChallenge, () => { return utils.endsWith(url, '/%F0%9F%98%BC-%23zatschi-%23whoneedsfourlegs-1572600969477.jpg') })
utils.solveIf(challenges.missingEncodingChallenge, () => { return utils.endsWith(url.toLowerCase(), '%f0%9f%98%bc-%23zatschi-%23whoneedsfourlegs-1572600969477.jpg') })
utils.solveIf(challenges.accessLogDisclosureChallenge, () => { return url.match(/access\.log(0-9-)*/) })
next()
}
Expand Down

0 comments on commit 04b6393

Please sign in to comment.