Skip to content

fix(classic1s): improve signing validation, SE compatibility, and FIDO handling - #212

Open
lihuanhuan wants to merge 11 commits into
OneKeyHQ:masterfrom
lihuanhuan:classic1s
Open

lihuanhuan wants to merge 11 commits into
OneKeyHQ:masterfrom
lihuanhuan:classic1s

Conversation

@lihuanhuan

Copy link
Copy Markdown
Contributor

Improve Classic1S signing validation and input bounds, update SE device-signing integration, and correct FIDO interaction when no matching credential exists.

  • Fix Ethereum Safe transaction handling by rejecting empty or oversized calldata chunks and avoiding duplicate failure responses.
  • Bind device-signed EIP-7702 authorizations to the confirmed transaction sender, validate authorization paths and nonces, and reject nonce overflow.
  • Bound TON and Jetton text comments to available cell capacity, size the OP_RETURN display buffer for the full supported payload, and validate Nostr IV encoding and decoded length.
  • Route SE device signing through the authenticated channel and adapt legacy factory signing requests while preserving the existing factory-mode gate.
  • Require SE firmware 1.3.4 and derive the version error message from the same version macros used by the firmware header and startup check.
  • Require user interaction before reporting no credentials for interactive FIDO GetAssertion requests, with cancellation and timeout handling.
  • Enable strong stack protection for hardware firmware builds and update the Python/Nix build environment to Python 3.11 and Pillow 13.
  • Add ASan/UBSan host regression coverage for EIP-7702 authorization binding, TON comment limits, OP_RETURN formatting, and Nostr IV bounds.

@socket-security

socket-security Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedpypi/​poetry@​2.5.2 ⏵ 1.0.1090 +625 -75100100100
Updatedpypi/​pylint@​2.12.2 ⏵ 2.17.791 -29910010070
Updatedpypi/​pillow@​9.0.1 ⏵ 13.0.086 +2100 +7510010070 -30

View full report

@socket-security

socket-security Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Medium priority
Critical CVE: Poetry before v1.1.9 contains Untrusted Search Path

CVE: GHSA-xr2c-5w89-63pv Poetry before v1.1.9 contains Untrusted Search Path (CRITICAL)

Affected versions: < 1.1.9

Patched version: 1.1.9

From: pyproject.toml → pypi/poetry@1.0.10

ℹ Read more on: This package | This alert | What is a critical CVE?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Remove or replace dependencies that include known critical CVEs. Consumers can use dependency overrides or npm audit fix --force to remove vulnerable dependencies.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore pypi/poetry@1.0.10. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant