dcd1f5d48c
Here we go, next step then. As we did not fix the performance issue when autofiltering the variables (see bug 20975), the only solution we have is to add the filters explicitely. This patch has been autogenerated (using add_html_filters.pl, see next pathces) and add the html filter to all the variables displayed in the template. Exceptions are made (using the new 'raw' TT filter) to the variable we already listed in the previous versions of this patch. To test: - Use t/db_dependent/Koha/Patrons.t to populate your DB with autogenerated data which contain <script> tags - Remove them from borrower_debarments.comments (there are allowed here) update borrower_debarments set comment="html tags possible here"; - From the interface hit page and try to catch alert box. If you find one it means you find a possible XSS. To know where it comes from: * note the exact URL where you found it * note the alert box content * Dump your DB and search for the string in the dump to identify its location (for instance table.field) Next: * Ideally we would like to use the raw filter when it is not necessary to HTML escape the variables (in big loop for instance) * Provide a QA script to catch missing filters (we want html, uri, url or raw, certainly others that I am forgetting now) * Replace the html filters with uri when needed (!) Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
95 lines
4.5 KiB
Text
95 lines
4.5 KiB
Text
[% USE Koha %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Reports</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="rep_reports-home" class="rep">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'circ-search.inc' %]
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › Reports</div>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
|
|
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
|
|
[% IF ( CAN_user_reports_execute_reports || CAN_user_reports_create_reports ) %]
|
|
<form action="/cgi-bin/koha/reports/guided_reports.pl" method="get">
|
|
<fieldset class="brief">
|
|
<h2>Guided reports</h2>
|
|
<input name="phase" value="Use saved" type="hidden">
|
|
<input name="filter_set" value="1" type="hidden">
|
|
[% IF ( CAN_user_reports_create_reports ) %]
|
|
<p>
|
|
<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Build%20new"><i class="fa fa-code-fork"></i> Create guided report</a>
|
|
</p>
|
|
<p>
|
|
<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create%20report%20from%20SQL"><i class="fa fa-plus"></i> Create from SQL</a>
|
|
</p>
|
|
[% END %]
|
|
<p>
|
|
<a href="/cgi-bin/koha/reports/guided_reports.pl?phase=Use%20saved"><i class="fa fa-list"></i> Use saved</a>
|
|
</p>
|
|
<label for="filter_keyword">Search by keyword:</label> <input id="filter_keyword" name="filter_keyword" value="" size="16" type="text" /> <input value="Search" type="submit" />
|
|
</fieldset>
|
|
</form>
|
|
[% END %]
|
|
|
|
<h5>Reports dictionary</h5>
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/reports/dictionary.pl?phase=View%20Dictionary">View dictionary</a></li>
|
|
</ul>
|
|
|
|
<h2>Statistics wizards</h2>
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/catalogue_stats.pl">Catalog</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/issues_stats.pl">Circulation</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/serials_stats.pl">Serials</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/cash_register_stats.pl">Cash register</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/reserves_stats.pl">Holds</a></li>
|
|
</ul>
|
|
|
|
[% IF UseKohaPlugins %]
|
|
<h2>Report plugins</h2>
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">Report plugins</a></li>
|
|
</ul>
|
|
[% END %]
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-6"><h2>Top lists</h2>
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/reports/bor_issues_top.pl">Patrons with the most checkouts</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/cat_issues_top.pl">Most-circulated items</a></li>
|
|
</ul>
|
|
|
|
<h2>Inactive</h2>
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/reports/borrowers_out.pl">Patrons who haven't checked out</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/catalogue_out.pl">Items with no checkouts</a></li>
|
|
</ul>
|
|
|
|
<h2>Other</h2>
|
|
<ul>
|
|
<li><a href="/cgi-bin/koha/reports/itemslost.pl">Items lost</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/orders_by_fund.pl">Orders by fund</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalog by item type</a></li>
|
|
<li><a href="/cgi-bin/koha/reports/issues_avg_stats.pl">Average loan time</a></li>
|
|
<li><a href="http://schema.koha-community.org/" target="blank">Koha database schema</a></li>
|
|
<li><a href="http://wiki.koha-community.org/wiki/SQL_Reports_Library" target="blank">Koha reports library</a></li>
|
|
</ul></div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<div class="col-md-12" id="intranet-reports-home-html">
|
|
[% Koha.Preference('IntranetReportsHomeHTML') | html %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|