Skip to content
Disclosed report CVE-2011-2980

Binary planting potential in ThinkPadSensor::Startup

Brandon Sterne Follow

Originally disclosed on Mozilla

  • Fixed in 28 days
  • Paid in 2.3 years
  • Disclosed after 28 days
Text
Mitja Kolsek reported this today as a follow up to CVE-2010-3131.

-----
Our colleague noticed that one of the binary planting issues we reported to you last year during the "binary planting sweep" hasn't been fixed yet - or it has subsequently returned to the code. I have attached our report so you don't have to dig through the archives.

The test was done on Firefox 3.6.15. Soon-to-be-released Firefox 4 mitigates this issue to some extent by calling SetDllDirectory(""), but due to a bug in Windows, this mitigation is not fully effective (see
http://blog.acrossecurity.com/2010/10/breaking-setdlldirectory-protection.html). We confirmed that a "problematic" PATH entry, as described in this blog post, makes FF4 again vulnerable to binary planting through sensor.dll.
-----

A quick mxr search for sensor.dll turns up:

PRBool
ThinkPadSensor::Startup()
{
  mLibrary = LoadLibraryW(L"sensor.dll");
  if (!mLibrary)
    return PR_FALSE;

  gShockproofGetAccelerometerData = (ShockproofGetAccelerometerData)
    GetProcAddress(mLibrary, "ShockproofGetAccelerometerData");
  if (!gShockproofGetAccelerometerData) {
    FreeLibrary(mLibrary);
    mLibrary = nsnull;
    return PR_FALSE;
  }
  return PR_TRUE;
}

I'm copying Ehsan since he fixed a more recent version of one of these.

The original report as published on Mozilla's Bugzilla, by Brandon Sterne. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

What is known

A security bug in DOM: Navigation. Mozilla made it public on 14 April 2011 as CVE-2011-2980.

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

More by Brandon Sterne

View all

6 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.