Skip to content
Access control Disclosed report Advanced

Arbitrary code execution in TSEC Heavy Secure, return-oriented programming in TSEC Secure ROM, and recovery of TSEC-derived cryptographic secrets

The TSEC Secure ROM fails to verify the access control list for the input $c7 register, allowing an attacker to infer the csecret values used in Heavy Secure program authentication and decryption. This enables the attacker to choose the signature key and sign and execute arbitrary Heavy Secure code.

lnchan Follow

Originally disclosed on HackerOne

Medium 6.7 View original
  • Triaged in 7 days
  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 4.0 years

Summary by the program

Summary by the researcher

TSEC Secure ROM does not verify the ACL for the input $c7 register. With use of additional exploits and careful analysis of TSEC MMIO registers during Heavy Secure program authentication, the attacker can guess which csecret values are used for the authentication algorithm and Heavy Secure program decryption. This lets the attacker know how to arbitrarily choose the "signature key" used in the authentication algorithm, by AES-128 decrypting the wanted key with csecret 0x01. Effectively, this allows for the attacker to sign and execute any Heavy Secure code.

The original report as published on HackerOne, by lnchan. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could sign and execute arbitrary Heavy Secure code.

What the attacker needed

Access to TSEC hardware; additional exploits; careful analysis of MMIO registers

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The TSEC Secure ROM does not check permissions on one input register, so an attacker who studies the chip can work out the secret values used to verify protected programs. That lets them sign and run their own Heavy Secure code.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Nintendo

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.