Author Periodic Report - Reflected cross-site scripting (XSS)

Summary

NameAuthor Periodic Report - Reflected cross-site scripting (XSS)
Code nameskims-0034
ProductAuthor Periodic Report
Affected versionsVersion
StatePrivate
Release date2025-03-14

Vulnerability

KindReflected cross-site scripting (XSS)
RuleReflected cross-site scripting (XSS)
RemoteNo
CVSSv4 VectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:L/VA:L/SC:L/SI:L/SA:L/E:U
CVSSv4 Base Score4.8 (Medium)
Exploit availableNo
CVE ID(s)CVE-2025-31307

Description

Author Periodic Report

was found to be vulnerable. The web application dynamically generates web content without validating the source of the potentially untrusted data in myapp/php/report.php.

Vulnerability

Skims by Fluid Attacks discovered a Reflected cross-site scripting (XSS) in Author Periodic Report . The following is the output of the tool:

Skims output

 3 | function view() {
 4 |
 5 | $month=$_GET[""month""];
 6 | if(!$month)$month=date(n);
 7 | $m[$month]=""selected"";
 8 |
 9 | $year=$_GET[""year""];
 10 | if(!$year)$year=date(Y);
 11 | ?>
 12 |
 13 |
 14 | <div class=""wrap"">
 15 | <div id=""author-periodic-report"">
 16 |
 17 | <h2>Author Periodic Report</h2>
 18 | <br/>
 19 |
 20 | <form method=""GET"" action="""">
 21 | <div>
 22 | <label>Select Month: </label>
 23 |
 24 | <select name=""month"" id=""month"" />
 25 | <?php
 26 | for($i=1; $i<=12; $i++)
 27 | echo ""<option value='"",$i,""' "",$m[$i],"">"", date('F',mktime(0,0,0,$i,10)) ,""</option>"";
 28 | ?>
 29 | </select>
 30 |
 31 | <input type=""text"" name=""year"" id=""year"" value=""<?=$year;?>""/>
 32 |
 33 | <input type=""submit"" id=""display_report"" value=""Display Report""/>
> 34 | <input type=""hidden"" name=""page"" value=""<?php echo $_GET['page']?>""/>
 35 | </div>
 36 | </form>
 37 |
 38 | </div>
  39 |
  40 |
  41 |
  42 | <?php
  43 |
  44 | include_once(PERIODIC_REPORT_ROOT . '/php/display_report.php');
  45 | }
     ^ Col 0

Our security policy

We have reserved the ID CVE-2025-31307 to refer to this issue from now on.

System Information

  • Product: Author Periodic Report
  • Version:

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Andres Roldan from Fluid Attacks' Offensive Team using Skims

Timeline

Time-lapse-logo

2025-03-14

Vulnerability discovered.

Time-lapse-logo

2025-03-14

Vendor contacted.

Fluid Logo Footer

Testing software security for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.