Skip to content

Commit 4f78a39

Browse files
committed
Added S-48
1 parent 1b181b9 commit 4f78a39

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ S.No. | Topic
6666
**45** | [Vulnerable Code Snippet - 32](/resources/vulnerable-code-32.md)
6767
**46** | [Vulnerable Code Snippet - 33](/resources/vulnerable-code-33.md)
6868
**47** | [Vulnerable Code Snippet - 34](/resources/vulnerable-code-34.md)
69+
**48** | [Vulnerable Code Snippet - 35](/resources/vulnerable-code-35.md)
6970

7071

7172
# SecurityExplained NewsLetter

media/code-35.jpg

149 KB
Loading

resources/vulnerable-code-35.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### SecurityExplained S-47: Vulnerable Code Snippet - 35
2+
3+
#### Vulnerable Code:
4+
5+
![Vulnerable Code](../media/code-35.jpg)
6+
7+
8+
#### Solution:
9+
10+
The code is vulnerable to XSS and LFI. The focus in this code is that the filename can be used as a payload to execute Javasript and preform an XSS attack.
11+
When filtering a function always remember that it's more than one bug that can be exploited in it. For example this is highly vulnerable to LFI but it's also vulnerable to XSS.
12+
13+
Twitter Thread: https://twitter.com/harshbothra_/status/1494127206552985605
14+
15+
##### Code Credits: @Brumens2
16+

0 commit comments

Comments
 (0)