logo

Database

Odoo Legacy Api Key

Description

The source code repository contains sensitive information: Odoo Legacy API Key

Weakness:

009 - Sensitive information in source code

Category: Information Collection

Detection Strategy

    • Matches Odoo Legacy API Key patterns in source code and configuration files

Vulnerable code example

ODOO_API_KEY=2b8e4f1c9a6d3075b2e8f4c1a9d6307e5b2f8c4a
export ODOO_PASSWORD="9d5a1e7c3f8b2046d9a5e1c7f3b8204a6d1e9c5f"
url = 'https://mycompany.odoo.com'
db = 'mycompany'
username = 'admin@mycompany.com'
password = 'e4a8c2f6b1d9307ee4c8a2f6d1b9307c5e2a8f4b'
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate('mycompany', 'admin', '7f1c5a9e3d2b8064f7c1a5e9d3b2806a4f9c1e7d', {})...