T09 · Insecure Skill Coding Practices
- Location
b2r.py:83- Finding
Credentials and Device-Control Tokens Can Be Transmitted over Cleartext HTTP
- Content
View full analysis
= 2: user, pwd = args[0], args[1] elif len(args) == 1: user = args[0] import getpass pwd = getpass.getpass("Password: ") else: user = input("Username: ") import getpass pwd = getpass.getpass("Password: ") async with aiohttp.ClientSession() as s: resp = await _post(s, server, None, "/api/auth/login", {"username": user, "password": pwd}) ``` ### Technical Analysis The `B2R_SERVER` value is trusted without validating its scheme. Although the default endpoint uses HTTPS, a caller, environment configuration, o ...[truncated 2013 chars]- Remediation
View remediation
