Skip to content
Info disclosure Advisory Advanced CVE-2026-17775

Inappropriate implementation in PresentationAPI (CVE-2026-17775)

The PresentationConnection::send method for ArrayBufferView sends the entire backing ArrayBuffer instead of only the view's slice, so a receiver can obtain data outside the intended view, potentially across origins. An attacker controlling a receiver page could read sensitive data from the controller's memory.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The PresentationConnection::send implementation for ArrayBufferView incorrectly transmits the entire backing ArrayBuffer instead of the specified view slice. This allows a receiver to access data in the controller's memory that was not intended for transmission, potentially across different origins.

Affected files:

  • third_party/blink/renderer/modules/presentation/presentation_connection.cc
  • third_party/blink/renderer/core/typed_arrays/dom_array_buffer_view.h
  • third_party/blink/renderer/core/typed_arrays/dom_array_buffer_base.h

Estimated timestamp from git blame: 2015-06-08

Background

The Presentation API allows a 'controller' page to establish a connection and send messages to a 'receiver' page. The send() method can accept an ArrayBufferView (e.g., a Uint8Array). Standard behavior for web APIs (like WebSockets or WebRTC) is to transmit only the data within the view's specified slice (defined by its byteOffset and byteLength).

The Potential Vulnerability

In third_party/blink/renderer/modules/presentation/presentation_connection.cc, the send overload for ArrayBufferView correctly validates the view's length but then enqueues the entire backing buffer for transmission:

C++
void PresentationConnection::send(
    NotShared<DOMArrayBufferView> array_buffer_view,
    ExceptionState& exception_state) {
  // ... (Checks for valid connection state) ...
  if (!base::CheckedNumeric<wtf_size_t>(array_buffer_view->byteLength())
           .IsValid()) {
    // ... (Throws RangeError) ...
    return;
  }

  // POTENTIAL BUG: Enqueues the full backing buffer instead of a slice
  messages_.push_back(
      MakeGarbageCollected<Message>(array_buffer_view->buffer()));
  HandleMessageQueue();
}

The message is later processed by MakeBinaryMessage, which extracts the full buffer span:

C++
mojom::blink::PresentationConnectionMessagePtr MakeBinaryMessage(
    const DOMArrayBuffer* buffer) {
  auto message = mojom::blink::PresentationConnectionMessage::NewData(Vector<uint8_t>());
  Vector<uint8_t>& data = message->get_data();
  data.append_range(buffer->ByteSpan()); // Uses the full buffer span
  return message;
}

Because the view's byteOffset() and byteLength() are ignored, any data residing in the same ArrayBuffer outside of the intended slice is leaked to the receiver. This is particularly sensitive if the buffer is part of a pooled allocator or a WebAssembly linear memory heap.

Size-Gate Bypass

A secondary effect of this issue is a bypass of the wtf_size_t size check. The code validates the byteLength() of the view (which might be small), but sends the backing buffer() (which may be significantly larger). On 64-bit systems, if the buffer size exceeds 4GiB, the size is truncated to 32 bits when appended to the message vector, but unintended data from the start of the buffer is still transmitted.

Suggested Potential Reproduction Steps

  1. Establish a PresentationConnection between a controller (Origin A) and a receiver (Origin B).
  2. On Origin A, allocate an ArrayBuffer and place sensitive data at the beginning.
  3. Create a Uint8Array view starting at an offset after the sensitive data.
  4. Call connection.send(view).
  5. Observe on Origin B that the received message contains the entire ArrayBuffer from Origin A, including the sensitive data at the start.

Suggested Fix

The PresentationConnection::send implementation should be modified to capture the specific slice defined by the ArrayBufferView. One approach is to create a new DOMArrayBuffer from the view's slice before enqueuing it, or to update the Message class and MakeBinaryMessage to respect the view's offset and length.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

How it worked

Root cause

The send method enqueues the full backing buffer instead of creating a slice based on the view's byteOffset and byteLength.

Impact

A receiver page could access data in the controller's memory that was not intended for transmission, potentially across different origins.

What the attacker needed

A PresentationConnection between two origins; attacker controls the receiver page; controller sends an ArrayBufferView

The fix

The send implementation should be modified to capture the specific slice defined by the ArrayBufferView, for example by creating a new DOMArrayBuffer from the view's slice before enqueuing it.

How it was found

  1. Establish a PresentationConnection between a controller (Origin A) and a receiver (Origin B).
  2. On Origin A, allocate an ArrayBuffer and place sensitive data at the beginning.
  3. Create a Uint8Array view starting at an offset after the sensitive data.
  4. Call connection.send(view).
  5. Observe on Origin B that the received message contains the entire ArrayBuffer from Origin A, including the sensitive data at the start.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

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

When a web page sends a typed array (like a Uint8Array) over a connection, it should only send the part of the underlying memory that the array actually covers. Here, the code sent the whole memory buffer, so extra data that was not meant to be shared could be seen by the other side. This could let a malicious receiver page read private information from the sender's memory.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.