GHSA-cqf3-vpx7-rxhw

Suggest an improvement
Source
https://github.com/advisories/GHSA-cqf3-vpx7-rxhw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-cqf3-vpx7-rxhw/GHSA-cqf3-vpx7-rxhw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cqf3-vpx7-rxhw
Aliases
Published
2023-04-20T21:28:48Z
Modified
2024-02-16T08:10:23.028063Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L CVSS Calculator
Summary
Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in Pay
Details

Impact

A payments info page of Pay is susceptible to reflected Cross-site scripting. An attacker could create a working URL that renders a javascript link to a user on a Rails application that integrates Pay. This URL could be distributed via email to specifically target certain individuals. If the targeted application contains a functionality to submit user-generated content (such as comments) the attacker could even distribute the URL using that functionality.

Patches

This has been patched in version 6.3.2 and above.

Pay will now sanitize the back parameter and only permit relative paths.

Database specific
{
    "nvd_published_at": "2023-04-19T18:15:07Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-04-20T21:28:48Z"
}
References

Affected packages

RubyGems / pay

Package

Name
pay
Purl
pkg:gem/pay

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.3.2

Affected versions

0.*

0.0.0
0.0.2

1.*

1.0.0.beta2
1.0.0.beta3
1.0.0.beta4
1.0.0.beta5
1.0.0.rc1
1.0.0.rc2
1.0.0.rc3
1.0.0
1.0.1
1.0.2

2.*

2.0.0
2.0.1
2.0.2
2.0.3
2.1.0
2.1.1
2.1.2
2.1.3
2.2.0
2.2.1
2.2.2
2.3.0
2.3.1
2.4.0
2.4.2
2.4.3
2.4.4
2.5.0
2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
2.6.5
2.6.6
2.6.7
2.6.8
2.6.9
2.6.10
2.6.11
2.7.0
2.7.1
2.7.2

3.*

3.0.0
3.0.1
3.0.2
3.0.4
3.0.5
3.0.6
3.0.7
3.0.8
3.0.9
3.0.10
3.0.11
3.0.12
3.0.13
3.0.14
3.0.15
3.0.16
3.0.17
3.0.18
3.0.19
3.0.20
3.0.21
3.0.22
3.0.23
3.0.24

4.*

4.0.0
4.0.1
4.0.2
4.0.4
4.1.0
4.1.1
4.2.0
4.2.1

5.*

5.0.0
5.0.1
5.0.2
5.0.3
5.0.4

6.*

6.0.0
6.0.1
6.0.2
6.0.3
6.1.0
6.1.1
6.1.2
6.2.0
6.2.1
6.2.2
6.2.3
6.2.4
6.3.0
6.3.1