vendor:
Gitlab CE/EE
by:
Greenwolf
6.1
CVSS
MEDIUM
Stored XSS
79
CWE
Product Name: Gitlab CE/EE
Affected Version From: GitLab CE/EE versions 14.4 before 14.7.7
Affected Version To: all versions starting from 14.9 before 14.9.2
Patch Exists: YES
Related CWE: CVE-2022-1175
CPE: a:gitlab:gitlab_ce
Platforms Tested: Linux
2022
Gitlab Stored XSS
Any user can create a project with Stored XSS in an issue. XSS on Gitlab is very dangerous and it can create personal access tokens leading users who visit the XSS page to silently have the accounts backdoor. Can be abused by changing the base of the project to your site, so scripts are sourced by your site. Change javascript on your site to match the script names being called in the page. This can break things on the page though. Standard script include also works depending on the sites CSP policy. This is more stealthy.
Mitigation:
Ensure that user input is properly sanitized and validated before being used in the application.