Closed
Bug 1313385
Opened 9 years ago
Closed 9 years ago
WebSocketImpl::WebSocketImpl does not initialise mSecure
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla52
People
(Reporter: jseward, Assigned: baku)
Details
(Keywords: csectype-uninitialized, sec-moderate, Whiteboard: [post-critsmash-triage][adv-main51+])
Attachments
(2 files)
3.19 KB,
text/plain
|
Details | |
757 bytes,
patch
|
qdot
:
review+
gchang
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
This is dynamically observable in our test suites. STR to follow.
Setting as sec-sensitive because it seems to me to be ungood to be
confused about whether a connection is secure or not. Please declassify
as appropriate.
Reporter | ||
Comment 1•9 years ago
|
||
Reporter | ||
Comment 2•9 years ago
|
||
Looking at dom/base/WebSocket.cpp, it seems that class WebSocketImpl
has a |bool mSecure|, but |explicit WebSocketImpl(WebSocket* aWebSocket)|
does not give an initial value for it. I am hypothesising that this is
the cause of the reported complaint.
Updated•9 years ago
|
Group: core-security → dom-core-security
status-firefox49:
--- → affected
status-firefox50:
--- → affected
status-firefox51:
--- → affected
status-firefox-esr45:
--- → affected
Flags: needinfo?(amarchesini)
Keywords: csectype-uninitialized,
sec-moderate
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8805213 -
Flags: review?(kyle)
Updated•9 years ago
|
Attachment #8805213 -
Flags: review?(kyle) → review+
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → amarchesini
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Andrea Marchesini [:baku] from comment #3)
> Created attachment 8805213 [details] [diff] [review]
> ws.patch
Verified as fixing the complaint.
The test is devtools/server/tests/mochitest/test_websocket-server.html
FTR, command line I used is
DISPLAY=:1.0 G_SLICE=always-malloc ./mach mochitest -f chrome --debugger=v312BRANCH \
--debugger-args="--fair-sched=yes --smc-check=all-non-file \
--suppressions=/home/sewardj/MOZ/SUPPS/mochitest-mc-may2015.supp --error-limit=no \
--trace-children=yes \
--child-silent-after-fork=yes --trace-children-skip=/usr/bin/hg,/bin/rm,*/bin/certutil,*/bin/pk12util,*/bin/ssltunnel,*/bin/uname,*/bin/which,*/bin/ps,*/bin/grep,*/bin/java \
--num-transtab-sectors=24 --tool=memcheck --freelist-vol=300000000 --redzone-size=64 \
--gen-suppressions=no --px-default=allregs-at-mem-access \
--px-file-backed=unwindregs-at-mem-access --stats=no --show-mismatched-frees=no \
--fullpath-after=/MOZ/ --num-callers=20 --track-origins=no" --keep-open=no \
devtools/server/tests/mochitest/test_websocket-server.html 2>&1 | tee spew-01-06-mc
Comment 5•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
tracking-firefox51:
--- → ?
tracking-firefox52:
--- → ?
tracking-firefox-esr45:
--- → ?
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Comment 7•9 years ago
|
||
Hi :dveditz,
Since 51 is also affected, is this worth uplifting to 51?
Flags: needinfo?(dveditz)
Comment 9•9 years ago
|
||
sure, this is a trivially safe fix to uplift to 51 (and ESR for that matter).
Flags: needinfo?(dveditz)
Comment 10•9 years ago
|
||
Hi :baku,
could you please nominate this uplift to Aurora51 & ESR?
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8805213 [details] [diff] [review]
ws.patch
Approval Request Comment
[Feature/regressing bug #]: WebSocket ported to webIDL
[User impact if declined]: mSecure is not initialized in the CTOR. In theory until the initialization is completed in other methods, this value is unset.
[Describe test coverage new/current, TreeHerder]: none
[Risks and why]: none
[String/UUID change made/needed]: none
Flags: needinfo?(amarchesini)
Attachment #8805213 -
Flags: approval-mozilla-aurora?
Comment 12•9 years ago
|
||
Comment on attachment 8805213 [details] [diff] [review]
ws.patch
Fix a sec-moderate. Take it in 51 aurora.
Attachment #8805213 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•9 years ago
|
Group: dom-core-security → core-security-release
Comment 14•9 years ago
|
||
This may as well wait for the ESR that will go out with 51 (45.7.0).
Updated•9 years ago
|
Flags: qe-verify-
Whiteboard: [post-critsmash-triage]
Updated•9 years ago
|
tracking-firefox-esr45:
? → ---
Whiteboard: [post-critsmash-triage] → [post-critsmash-triage][adv-main51+]
Updated•8 years ago
|
Group: core-security-release
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•