Skip to content

Commit 9a07b6b

Browse files
authored
Update solution.md
1 parent 13bfec1 commit 9a07b6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tamuctf2018/maze/solution.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
### maze
22
> I created this really cool CTF challenge where users are supposed to bypass client side authentication to get a flag. However it seems like people are able get the flag through other means!
33
Can you find and fix the problem in my challenge for me?
4+
5+
Local file include allows flag file to be read. A quick hack by checking if the filepath includes flag works.
6+
7+
Changes:
8+
```
9+
33 - if (filePath == __dirname)
10+
33 + if (filePath == __dirname || filePath.indexOf('flag'))
11+
```

0 commit comments

Comments
 (0)