T09 · Insecure Skill Coding Practices
- Location
scripts/pdf_ocr_processor.py:153- Finding
Local OCR failure silently falls back to cloud processing and transmits document contents
- Content
View full analysis
Dict[str, Any]: """Use the SiliconFlow API to recognize a PDF.""" images = self.pdf_to_images(pdf_path) text_parts = [] for idx, img_base64 in enumerate(images, 1): page_text = self.siliconflow_engine.recognize(img_base64, idx) text_parts.append(f"=== Page {idx} ===\n{page_text}") return { "text": "\n\n".join(text_parts), "page_count": len(images), "engine": "silico ...[truncated 3597 chars]- Remediation
View remediation
