惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
罗磊的独立博客
The GitHub Blog
The GitHub Blog
V
V2EX
Last Week in AI
Last Week in AI
博客园 - 聂微东
MyScale Blog
MyScale Blog
美团技术团队
L
LangChain Blog
博客园 - Franky
腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
S
SegmentFault 最新的问题
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
量子位
小众软件
小众软件
宝玉的分享
宝玉的分享
J
Java Code Geeks
Google DeepMind News
Google DeepMind News
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
10 Python modules, one dangerous pattern: How I found 13 ...
Eldor Zufaro · 2026-05-20 · via DEV Community

TL;DR: Every core module of a popular firewall management SDK uses Python's unsafe XML parser. Here's what that means for production systems — and how to fix it in 10 lines.

Your SDK dependencies may be parsing untrusted XML without protection — and you wouldn't know until an incident.

I audited an open source Python SDK for firewall management. Auditor Core v2.3 flagged 13 critical findings across 10 production modules — all the same root cause.

Every core module uses Python's native xml.etree.ElementTree parser — the one Python's own documentation recommends replacing.

Affected files: base.py, firewall.py, network.py, panorama.py, policies.py, objects.py, ha.py, plugins.py, userid.py, __init__.py.

The library's purpose is to parse XML responses from live network devices. Any attacker-influenced response (MitM, compromised appliance, rogue endpoint) gets processed without XXE or Billion Laughs protection.

Second finding: hashlib.sha1() used for value hashing in production logic — with the comment documenting it explicitly in the source. SHA-1 has been broken since 2017.

Both were found using Auditor Core v2.3 — my deterministic security engine that combines SAST, SCA, secrets, and CI/CD analysis with AI validation.

What makes it different from running Bandit or Semgrep directly:

→ Findings are deduplicated and correlated across detectors (the SHA-1 issue was caught by 3 rules, reported once with full context)

→ Every finding maps to SOC 2 TSC, CIS Controls v8, and ISO 27001:2022

→ Code quality noise is separated from real vulnerabilities before report generation

→ PDF output is structured for cyber insurance underwriting and SOC 2 readiness

The fix is trivial: replace import xml.etree.ElementTree as ET with import defusedxml.ElementTree as ET in each module. Drop-in compatible.

The broader lesson: libraries defer security hardening of internal parsing, then ship that risk into hundreds of downstream projects.

I'm currently offering confidential audits for Python/TS backends — $490, 3-day turnaround, NDA, SOC 2 ready report. If your team hasn't reviewed its dependencies for unsafe XML parsing or weak crypto this year, let's talk.

DataWizual Labs Web-site
Email: eldorzufarov66@gmail.com