Nice catch. IMHO, it's a little too obvious, so probably not a bugdoor. Maybe someone who knows better wasn't getting enough sleep.
What should we be looking for in the code?
best to pass a list of arguments to subprocess rather than a string, and avoid shell=True
Same for SQL statements, single quotes in a query string should generate a warning to just use prepared statements instead :-)