Description
diaspora* before 0.10.0 contains a cross-site scripting vulnerability that allows unauthenticated attackers to inject iframe attributes via the maxheight parameter of the GET /oembed endpoint. Attackers can supply a single quote in maxheight to inject an onload handler into the returned html, executing script in third-party oEmbed consumers that embed it unsanitized.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| diaspora | diaspora | < 0.10.0 | 0.10.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | diaspora-installer | No fix yet | — |
| Ubuntu 26.04 LTS | diaspora-installer | No fix yet | — |
| Ubuntu 20.04 LTS | diaspora-installer | No fix yet | — |
| Ubuntu 18.04 LTS | diaspora-installer | No fix yet | — |
| Ubuntu 16.04 LTS | diaspora-installer | No fix yet | — |
References
- diaspora v0.10.0 Release Notes release-notes vendor-advisory
- https://github.com/diaspora/diaspora/commit/f3a7465aa2ec48a3057937c0c4c8d9aa48fba2d3 patch
- https://github.com/diaspora/diaspora/blob/v0.9.1.0/app/helpers/posts_helper.rb#L22-L27 technical-description
- https://github.com/diaspora/diaspora/blob/v0.9.1.0/app/controllers/posts_controller.rb#L35-L42 technical-description
- https://github.com/diaspora/diaspora product
- VulnCheck Advisory: diaspora* before 0.10.0 XSS via maxheight in oEmbed endpoint third-party-advisory