Back to Home
darthvader3010 icon

EfficientNet-implementation

by darthvader3010

Overview

An image classification system using EfficientNet-B7 for categorizing images and providing predictions via a Flask API and an MCP server.

Installation

Run Command
python app.py

Security Notes

CRITICAL VULNERABILITY: The /classify endpoint in `app.py` directly uses user-provided `image_path` from `request.json` to open files (`Image.open(image_path)`). This is a severe Local File Inclusion (LFI) vulnerability, allowing an attacker to attempt to read arbitrary files on the server's filesystem. There is also no sanitization for uploaded filenames, though `os.path.join` offers some protection. The Flask server is exposed on `0.0.0.0`, which is risky if not behind a firewall.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassHigh
Avg Tokens5000
Stars0
Forks0
Last Update2025-11-30

Tags

Image ClassificationEfficientNetFlaskNode.jsMCP Server