You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an author uploads a file that they aren't allowed to in the File Manager, they can spoof (manually change) the Content-Type to allow it to be uploaded.
Under Proxy Listeners, highlight the 127.0.0.1:8080 line
Click "Edit"
Change port from 8080 to 8081
Launch the browser
Click Intercept tab
Click "Open browser"
Upload a file that should not be allowed
In the Burp browser go to localhost:81
Log in as a teacher
Open a unit in the Authoring Tool
Go to the File Manager view
Go back to the Burp application and click "Intercept is off" to turn intercept on
Go back to the Burp browser and drag and drop a php file into the File Manager
Go back to the Burp application and it should have intercepted the upload request
Change
Content-Type: application/octet-stream
to
Content-Type: image/jpeg
Click "Forward" button at the top left
The file will be uploaded when it shouldn't be
Right now we only look at the Content-Type which can be spoofed. We should try to detect the real mime type instead of relying on the Content-Type value.
The text was updated successfully, but these errors were encountered:
When an author uploads a file that they aren't allowed to in the File Manager, they can spoof (manually change) the Content-Type to allow it to be uploaded.
Download the Burp Suite Community Edition (no need to enter email, just click "Go straight to downloads")
https://portswigger.net/burp/communitydownload
Install Burp Suite Community Edition
Launch Burp Suite Community Edition
Leave "Temporary project" selected
Use Burp defaults
Configure the proxy
Launch the browser
Upload a file that should not be allowed
Right now we only look at the Content-Type which can be spoofed. We should try to detect the real mime type instead of relying on the Content-Type value.
The text was updated successfully, but these errors were encountered: