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
In PartKeepr before v1.4.0, the functionality to upload attachments using a URL when creating a part, does not validate that requests can be send to local ports, allowing SSRF attacks and port enumeration.
Steps to reproduce
Go to 'Edit'.
Click on 'Storage Locations'.
Click on 'Add Storage Locations'.
Click on 'Change Image'.
Fill the 'URL' field with an url using a local port "http:///127.0.0.1:8".
You will see a server error indicating that the server did indeed attempt to connect to itself (thus supporting Blind SSRF).
Expected behavior
The application should not allow access to local ports.
PartKeepr Version: v1.4.0
Operating System: Linux
Web Server: Apache
PHP Version: 7.4
Database and version: Mysql
Reproducible on the demo system: Yes.
The text was updated successfully, but these errors were encountered:
Retr02332
changed the title
The functionality change image to parts allows access to local ports (Blind SSRF).
The functionality change image allows access to local ports (Blind SSRF).
Jan 14, 2022
Retr02332
changed the title
The functionality change image allows access to local ports (Blind SSRF).
The functionality change image allows access to local ports (SSRF).
Jan 22, 2022
Bug description
In PartKeepr before v1.4.0, the functionality to upload attachments using a URL when creating a part, does not validate that requests can be send to local ports, allowing SSRF attacks and port enumeration.
Steps to reproduce
Expected behavior
The application should not allow access to local ports.
Observed behavior
Local ports can be access inside the server.
Vulnerable code
PartKeepr/src/PartKeepr/ImageBundle/Controller/TemporaryImageController.php
Lines 34 to 67 in c6323d5
PartKeepr/src/PartKeepr/UploadedFileBundle/Services/UploadedFileService.php
Lines 109 to 154 in c6323d5
Screenshots
POC Video
poc_blind_ssrf.mp4
System Information
PartKeepr Version: v1.4.0
Operating System: Linux
Web Server: Apache
PHP Version: 7.4
Database and version: Mysql
Reproducible on the demo system: Yes.
The text was updated successfully, but these errors were encountered: