Closed
Bug 354978
Opened 18 years ago
Closed 18 years ago
privilege escalation using watchpoint
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha1
People
(Reporter: sync2d, Assigned: mrbkap)
References
Details
(Keywords: testcase, verified1.8.0.9, verified1.8.1.1, Whiteboard: [sg:critical])
Attachments
(3 files)
1.42 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
1.28 KB,
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
1.48 KB,
patch
|
dveditz
:
approval1.8.0.9+
dveditz
:
approval1.8.1.1+
|
Details | Diff | Splinter Review |
Pseudo stack frame constructed by js_watch_set() is not aware of function
cloning. So it can be used to execute arbitrary code with elevated privilege.
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/js/src/jsdbgapi.c&rev=3.68&mark=362-375#362
works on:
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1)
Gecko/20060930 BonEcho/2.0
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.0.8pre)
Gecko/20060930 Firefox/1.5.0.8pre
Comment 2•18 years ago
|
||
Johnny: you just landed bug 336731. Although that doesn't fix this, is it similar enough to this one that you'd want to look into the fix?
Flags: blocking1.8.1.1+
Flags: blocking1.8.0.9+
Whiteboard: [sg:critical]
Assignee | ||
Comment 3•18 years ago
|
||
I have a feeling that brendan won't be too happy with this fix, but I haven't given this bug enough thought to fix it in a better way. This fix makes the faux frame maintain the illusion of the cloned function object.
Assignee | ||
Updated•18 years ago
|
Priority: -- → P1
Target Milestone: --- → mozilla1.9alpha
Comment 4•18 years ago
|
||
Comment on attachment 244855 [details] [diff] [review]
Fix
No, I like this fix. But didn't Igor try an auto-storage-class array initialiser with runtime values and find some old compiler we still care about choking on it?
/be
Attachment #244855 -
Flags: review?(brendan) → review+
Assignee | ||
Comment 6•18 years ago
|
||
Fix checked into trunk. I'll fix compiler bustage as needed.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 7•18 years ago
|
||
Comment on attachment 244855 [details] [diff] [review]
Fix
>+ jsval argv[2] = { OBJECT_TO_JSVAL(funobj), JSVAL_NULL };
Note: gcc 2.96 won't compile this because OBJECT_TO_JSVAL(funobj) is not a constant - "initializer element is not computable at load time".
Assignee | ||
Comment 8•18 years ago
|
||
Attachment #244959 -
Flags: review?(brendan)
Comment 9•18 years ago
|
||
Comment on attachment 244959 [details] [diff] [review]
Fix (potential) build bustage
r=jst
Attachment #244959 -
Flags: review?(brendan) → review+
Comment 10•18 years ago
|
||
Eagerly awaiting branch patch(es).
/be
Comment 11•18 years ago
|
||
The "potential" build bustage is breaking BeOS, can we get attachment 244959 [details] [diff] [review] checked in?
Comment 12•18 years ago
|
||
filed bug 360376 so we can hand out the bustage patch more easily.
Assignee | ||
Comment 13•18 years ago
|
||
This is just a combination of the other two patches in this bug.
Attachment #245376 -
Flags: approval1.8.1.1?
Attachment #245376 -
Flags: approval1.8.0.9?
Comment 14•18 years ago
|
||
Comment on attachment 245376 [details] [diff] [review]
Combined branch patch
approved for 1.8/1.8.0 branches, a=dveditz for drivers
Attachment #245376 -
Flags: approval1.8.1.1?
Attachment #245376 -
Flags: approval1.8.1.1+
Attachment #245376 -
Flags: approval1.8.0.9?
Attachment #245376 -
Flags: approval1.8.0.9+
Comment 16•18 years ago
|
||
20061127 windows/linux
verified fixed 1.8.0.9 no alert appears, but the security error about Components.classes does not appear until the page is refreshed.
verified fixed 1.8.1.1/1.9 no alert appears, security error appears when the link is clicked.
Status: RESOLVED → VERIFIED
Comment 17•18 years ago
|
||
hi shutdown,
I've tried to send you e-mail a few times without success. Can you contact chofmann@mozilla.org so we can pay you bug bounty in connection with this bug and other research that you have done.
thanks
chris h.
Comment 18•18 years ago
|
||
pvnick is doing a bit of research on XSS and also gathering up bugs with security related test cases to help add to the regression/certification test suites. adding him to the cc list in these...
Updated•18 years ago
|
Group: security
Updated•18 years ago
|
Flags: in-testsuite?
Comment 19•17 years ago
|
||
i Like this technologie of browsers, but i need one version of mozzila orriginal wich body , iguality of 98 windos or os 9.2. more jflat ..
sorry for my inglish friends
peace
www.myspace.com/akafabiomachado
Updated•12 years ago
|
Flags: in-testsuite? → in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•