Body Background
TrendAI™ Zero Day Initiative™ Logo

Multiple Kerberos Implementations Authentication Context Stack Overflow Vulnerability

September 12th, 2007

Vulnerability Details

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of MIT Kerberos. Authentication is not required to exploit this vulnerability.

The specific flaw exists in the svcauth_gss_validate() function. By sending a large authentication context over RPC, a stack based buffer overflow occurs, resulting in a situation allowing for remote code execution.

The vulnerable line of the function is:

memcpy((caddr_t)buf, oa->oa_base, oa->oa_length);

If 128 < oa->oa_length < 400, the exploitable situation occurs. Over 400 bytes is caught during a separate check for MAX_AUTH_SIZE earlier in the RPC packet decoding process.

Additional Details

MIT has issued an update to correct this vulnerability. More details can be found at:
http://web.mit.edu/kerberos/advisories/MITKRB5-SA-2007-006.txt

Disclosure Timeline

  • 2007-07-20 - Vulnerability reported to vendor
  • 2007-09-12 - Coordinated public release of advisory

Credit

Tenable Network Security

Back to Advisories

Hero Background

Stand at the front line of proactive security

Trend ZDI connects the experts who discover, remediate, and defend.
Add your voice to the work that pushes attackers back.