Closed Bug 1966621 Opened 1 year ago Closed 1 year ago

Use nsContentPolicyType in IPCInternalRequest IPDL

Categories

(Core :: DOM: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr128 --- wontfix
firefox138 --- wontfix
firefox139 --- wontfix
firefox140 + fixed

People

(Reporter: tschuster, Assigned: tschuster)

References

Details

(Keywords: csectype-undefined, sec-audit, Whiteboard: [necko-triaged][adv-main140-])

Attachments

(1 file)

No description provided.
Assignee: nobody → tschuster
Status: NEW → ASSIGNED

There is a question about how to rate this. Casting an out of range enum value is undefined behavior, so it's impossible to say what the compiler does. bug 1902621 is similar and was rated sec-audit as well. Assuming the compiler doesn't decide to blow up the world, the most likely outcome is a skipped CSP check. I think that shouldn't be too concerning. By faking e.g. nsIContentPolicy::TYPE_CSP_REPORT, which is not handled by CSP, it's always possible to skip CSP completely.

Keywords: sec-audit
See Also: → 1809713
Group: dom-core-security → network-core-security

Thanks, Tom. I guess I can leave this as audit for consistency but I don't really agree in general with having undefined behavior marked as sec-audit, but I'm not invested enough to figure out why the other bug was marked like that.

Keywords: sec-moderate → sec-audit
Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by tschuster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e4e1602504ff Use nsContentPolicyType in IPCInternalRequest IPDL. r=necko-reviewers,valentin
Group: network-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
See Also: → 1967270
QA Whiteboard: [sec] [qa-triage-done-c141/b140]
Flags: qe-verify-
Whiteboard: [necko-triaged] → [necko-triaged][adv-main140-]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: