forked from SWISDATA/processintel
io_operations: remove the pickle-based model import path before it is re-enabled #32
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ffrauenberger/ProcessIntel#32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: improvement (medium: remote code execution once the import is re-enabled)
Where
app/io_operations/export_operations.py:77-106app/io_operations/import_operations.py:51-69app/ui/home_ui/home_controller.py:93-95app/ui/export_ui/export_controller.py:158-166app/config.py:29-32Problem
pickle.dumps(mining_model).HomeController.process_filecontains a"pickle"branch that callsImportOperations.read_model, i.e.pickle.loadon the uploaded file..pickleis missing fromimport_file_types_mapping. The README advertises "Load ProcessIntel native process models" (#62), so someone is likely to "fix" this by adding.pickle.pickle.loadon attacker-controlled data executes arbitrary code. On the hosted service this would be remote code execution as the service user.Related: #53, #62.
Overlaps with upstream GitHub issue SWISDATA/processintel#6 Model Format and Import.
Fix
ImportOperations.read_modeland the"pickle"branch inHomeController.process_file, so the unsafe import cannot be re-enabled by adding a file extensionfrom
issues/SEC-002-pickle-used-for-model-export-and-import.md(code analysis of commit6bcc646, 2026-10-03)