[Commits] [wesnoth/wesnoth] 1f3dbf: Use looks_like_pbl() to disallow .pbl file inclusi...

GitHub noreply at github.com
Wed Jun 17 02:25:03 UTC 2015


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 1f3dbfb0862044c749f2b6dee5b81f47c6b16b3d
      https://github.com/wesnoth/wesnoth/commit/1f3dbfb0862044c749f2b6dee5b81f47c6b16b3d
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-06-16 (Tue, 16 Jun 2015)

  Changed paths:
    M changelog
    M players_changelog
    M src/filesystem.cpp
    M src/filesystem_boost.cpp

  Log Message:
  -----------
  Use looks_like_pbl() to disallow .pbl file inclusion (bug #23504)

This function is implemented using case-insensitive pattern matching,
unlike filesystem::ends_with(). I missed this when writing my original
fix, so the vulnerability still applied to .pbl files on a
case-insensitive filesystem (e.g. NTFS and FAT* on Windows) by using
different case to bypass the check.





More information about the Commits mailing list