25 lines
554 B
YAML
25 lines
554 B
YAML
id: python-app-sql-exceptions
|
|
|
|
info:
|
|
name: Python App - SQL Exception
|
|
author: geeknik
|
|
severity: medium
|
|
description: A generic SQL exception was discovered in Python according to PEP 249.
|
|
reference:
|
|
- https://www.python.org/dev
|
|
- https://peps.python.org/pep-0249/
|
|
tags: file,logs,python,sql
|
|
|
|
file:
|
|
- extensions:
|
|
- all
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: exception
|
|
part: body
|
|
regex:
|
|
- 'DataError'
|
|
- 'IntegrityError'
|
|
- 'ProgrammingError'
|
|
- 'OperationalError' |