TrustRatings - Reflected Cross-Site Scripting
MediumPublished Aug 8, 2023
### Summary The /api/v1/widget endpoint of [cust-api.trustratings.com](http://cust-api.trustratings.com/) is vulnerable to a reflected cross-site scripting attack. The value of the hostname passed to the API endpoint is reflected back without any filtering, which allows an attacker to run arbitrary javascript in the victim’s browser. ### Severity Moderate - The endpoint is vulnerable to reflected crosss-site scripting attack which can allow attackers to inject malicious code. ### Proof of Concept As an example, if a victim clicks the following link to the TrustRatings domain, they will get a browser alert demonstrating Javascript execution: ``` https://cust-api.trustratings.com/api/v1/widget/ggc00%22%3e%3cimg%20src%3da%20onerror%3dalert(1)%3esiud8?background=white&orientation=horizontal ``` ### Further Analysis It is recommended TrustRatings perform HTML encoding on any parameters that will be inserted into HTML. ### Timeline **Date reported**: 4/18/2023 **Date fixed**: **Date disclosed**: 8/8/2023
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| /api/v1/widget endpoint of cust-api.trustratings.com Product | < Nopatchedversionsatthistime. | Nopatchedversionsatthistime. |
Details and references
- Severity from
- GitHub (reviewed advisory)
More Google advisories
All Google| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Sep 62023 | Linux: KVM SEV-ES double fetch vulnerability | Medium | commit291bd20d5d88814a73d43b55b9428feab2f28094 |
| Aug 302023 | Linux Kernel: Ceph file system driver buffer overflow | Medium | See the advisory |
| Jul 242023 | AMD: Information Leak in Zen 2 | High7.1 | 2023-07-19 |
| Jun 292023 | Linux Kernel: eBPF verifier bug | Medium | ReferenceFurtherAnalysis |
| Jun 282023 | Harbor: Container Compromise Due to default Credentials | Critical | v1.3.18 |
| Jun 212023 | Connect2id: Timing attack in Nimbus-Jose | Medium | No fix yet |