File Validation Logic for Secure External Storage Access
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Image processing apparatuses face security issues when transmitting multimedia files from an external storage apparatus to another device, as they may receive malicious writing commands that compromise their security.
Innovation Solution
The electronic apparatus includes a processor that communicates with external devices to receive file requests, filters files based on permitted extensions and validity checks, and selectively stores files, preventing unauthorized or malicious files from being written, thereby enhancing security.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the image processing apparatus accepts writing commands from external apparatuses to support multimedia streaming functionality, then the adaptability and versatility of the apparatus is improved, but the security of the apparatus deteriorates due to potential malicious writing commands
Solution Approach 1:
The patent applies preliminary action by checking file extensions and validating file headers before accepting writing commands from external apparatuses. The processor examines the file extension against a permitted list and verifies the file header format matches the expected format for that extension, preventing malicious files from being written to the storage apparatus before they can cause harm.
Solution Approach 2:
The patent introduces an intermediary validation mechanism between the external apparatus and the storage apparatus. The processor acts as an intermediary that mediates the writing operation by checking file extensions and validating file headers, allowing legitimate files to pass through while blocking malicious ones, thus resolving the security vulnerability without preventing legitimate multimedia streaming functionality.
2Object-affected harmful factors
If the apparatus performs comprehensive file validation including extension checking and header analysis, then the security against malicious files is improved, but the processing time and complexity increases
Solution Approach 1:
The patent segments the file validation process into two distinct stages: first checking the file extension against a permitted list, and then validating the file header format. This segmentation allows the system to quickly reject obviously invalid files through extension checking, and only perform more complex header analysis on files with permitted extensions, reducing overall processing complexity while maintaining comprehensive security validation.
Data Source
AI summary
Provided is an electronic apparatus including: at least one communicator configured to communicate with a first external apparatus and a second external apparatus; and a processor configured to receive a request for writing a file on the second external apparatus from the first external apparatus, receive the file from the first external apparatus based on a filename format of the file, writing of which is permitted, and make the received file be selectively stored in the second external apparatus.


