5.4 Medium
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality Impact
LOW
Integrity Impact
LOW
Availability Impact
NONE
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
0.001 Low
EPSS
Percentile
29.4%
A compromised instance with shared folders could sync malicious files which contain arbitrary HTML and JavaScript in the name.
If the owner of another device looks over the shared folder settings and moves the mouse over the latest sync, a script could be executed to change settings for shared folders or add devices automatically.
Adding a new device with a malicious name could embed HTML or JavaScript inside parts of the page.
As long as trusted devices are used, the risk is low.
Additionally, the web GUI is not used that often in daily use which reduces the likelihood of exploitation.
<img src>
and sync it to the other instance.<img width=“834” alt=“latest-change” src=“https://user-images.githubusercontent.com/9484134/205084362-20a8ec13-a88d-469f-bdf1-e5291c20f4c1.png”>
<span>
<span>Updated "><img src=a onerror=alert(123)></span>
</span>
<div>
<div></div>
<div>\"><img src> @ 2022-11-30 16:58:43</div>
</div>
File gui/default/index.html
:
<tr>
<th><span></span> <span>Latest Change</span></th>
<td>
<span>
<span>Updated {%file%}</span>
<span>Deleted {%file%}</span>
</span>
</td>
</tr>
File gui/default/syncthing/core/tooltipDirective.js
:
angular.module('syncthing.core')
.directive('tooltip', function () {
return {
restrict: 'A',
link: function (scope, element, attributes) {
$(element).tooltip({
html: 'true'
});
}
};
});
The attribute html
should not be set to true
or input sanitized.
fedora 1"'><h1>Headline</h1><img src><script>alert(1)</script>
.<img width=“608” alt=“shared-with-1” src=“https://user-images.githubusercontent.com/9484134/205084172-8cab2d0e-3257-46d5-be81-41fbd7228e0c.png”>
<span>fedora 1"'><h1>Headline
</h1><img src></span>
<div>
<div></div>
<div>fedora 1"'><h1>Headline</h1><img src>
<script>alert(1)</script>
</div>
</div>
File gui/default/index.html
:
<tr>
<th><span></span> <span>Shared With</span></th>
<td>
<span></span>
</td>
</tr>
File gui/default/syncthing/core/tooltipDirective.js
:
angular.module('syncthing.core')
.directive('tooltip', function () {
return {
restrict: 'A',
link: function (scope, element, attributes) {
$(element).tooltip({
html: 'true'
});
}
};
});
The attribute html
should not be set to true
or input sanitized.
<img width=“672” alt=“shared-with-2” src=“https://user-images.githubusercontent.com/9484134/205084067-b33f8536-e350-4de1-86f6-3d4a12a683c3.png”>
CPE | Name | Operator | Version |
---|---|---|---|
github.com/syncthing/syncthing | lt | 1.23.5 |
github.com/syncthing/syncthing
github.com/syncthing/syncthing/commit/73c52eafb6566435dffd979c3c49562b6d5a4238
github.com/syncthing/syncthing/commit/f5e5af391a6583047c64ef8c51642003a79b75cf
github.com/syncthing/syncthing/releases/tag/v1.23.5
github.com/syncthing/syncthing/security/advisories/GHSA-9rp6-23gf-4c3h
lists.fedoraproject.org/archives/list/[email protected]/message/IRYGBFJPVBW6PPTETNIBWQJE4HJSA5PJ
lists.fedoraproject.org/archives/list/[email protected]/message/XEBWSQVGHSTR4ZO7LVVEMPEGMV2DS5XR
nvd.nist.gov/vuln/detail/CVE-2022-46165