github Cacti/plugin_weathermap v2.1

2 hours ago

Another great collaboration between our new team members @alcatron and @somethingwithproof .

--- 2.1 ---

security: Require the Manage Weathermap realm to view check.php, which previously disclosed the PHP version, host name, kernel, ini paths and loaded extensions to any anonymous requester
security: Escape map titles, info URLs and config filenames before they are rendered on the management pages, in session messages and in the RSS feed
security: Confine the OUTPUTFILE, HTMLOUTPUTFILE, IMAGEOUTPUTFILE and DATAOUTPUTFILE map directives to the plugin output directory so a map config cannot make the poller write or overwrite an arbitrary file; a file name or a path into output/ is accepted, and the accepted names are listed under HTMLOUTPUTFILE in the configuration reference
security: Restrict each output-file directive to its own extensions so DATAOUTPUTFILE, whose contents come from the map, can no longer be written as an includable HTML page that the graph tree executes
security: Reject executable-scheme info URLs (javascript:, data:, vbscript:), including HTML-entity-encoded forms, in the generated image map, emitting nohref so a map link cannot run script in a viewer's session
security: Reject an over-length duplicated-map title (more than 4088 bytes after cleaning) so it cannot inject map-config directives across the poller's config-line read boundary, matching the new-map check
security: Hide maps from members of a disabled user group in the list and cycle views, matching the per-map permission check
security: Treat an invalid format string in a map label, title or note as literal text so it can no longer abort the poller cycle on PHP 8
security: Require POST for the management and editor actions that change maps, groups, settings or permissions, so they are covered by Cacti's CSRF check
security: Escape hover graph URLs, editor script data, add-map picker links, map setting values and the page title, and drop hover graphs with a script scheme
security: Keep new maps and their source maps inside the config directory, keep output-file directives off the names the poller and graph tree use, and print the tree view HTML instead of including it
security: Do not copy lines of an INCLUDE file into the log, and print a format with a width of 1000 or more, or a width taken from the value, literally
issue#332: Run the jsdom browser tests in CI with locked dependencies, and keep image-map hotspots focusable under current jsdom
issue#334: Render the editor's dynamic option lists through an always-escaping attribute helper
issue#335: Retire the bundled overLIB library from the documentation example and the CLI HTML wrapper
issue#340: Build the editor image lists with one library scanner shared by the selectors and the image library
issue#342: Split the engine base classes and constants out of WeatherMap.class.php so tests load only what they need
issue#343: Run engine unit tests in-process where they no longer need isolation
issue#346: Split js/editor.js into dialog, picker, compact-editor and asset-library scripts so browser tests load whole files
issue#351: Keep an unrecognised target, a zero-width or doubled-back link, the first sample of a new poller_output row and a */0 schedule from aborting the poller, and accept lists and ranges in map schedules
issue: Fix the database upgrade failing to add a missing debug column to weathermap_maps and repair affected installations already marked as 2.1
issue: Keep the editor toolbar "Return to Map"/"Return to Manage" button on two lines instead of wrapping onto three
issue: Render editor text and image paths as data, escape backslashes and line breaks in the legacy example helper, and use a CSPRNG for random values
issue: Select the narrowest matching scale range, preserve collinear route reversals, and keep link position calculations within path endpoints
issue: Theme the standalone map editor from the active Cacti theme's own form-control colours (textboxes, textareas, selects, ddslick dropdowns and buttons) so dark themes such as Deepness no longer render light, unthemed controls; the editor reads the theme's colours at runtime instead of relying on variables only the Midwinter theme defines, so no per-theme editor stylesheet is required

--- 2.0.1 ---

issue#322: Refresh the bundled manual with current installation, upgrade, editor, image management and troubleshooting guides; retain the configuration and data-source references and repair documentation links
issue#322: Update editor and map-management screenshots, including map creation, management, the viewer, hover graphs and Advanced settings; use compact previews with full-size links and refresh cached documentation assets
feature#322: Add themed Docs access from the map heading and a Docs button after Rebuild All in map management, opening the bundled manual in a new tab
feature#321: Group default link width and appearance controls under Link Appearance Defaults in Map Style, and clarify Default Link Capacity in Map Properties
feature#321: Add Edge and Center comment styles to Map Style, with an individual override and Use map default option in Link Properties
feature#321: Add IN/OUT traffic-label positions to Map Style and per-link Advanced settings, with 75%/25% defaults and an option to restore inheritance; keep traffic-label and comment positions separate

Don't miss a new plugin_weathermap release

NewReleases is sending notifications on new releases.