Skip to content
  1. Mar 14, 2024
  2. Jul 29, 2023
  3. Apr 17, 2023
  4. Mar 23, 2023
  5. Dec 09, 2022
  6. Oct 04, 2022
  7. Sep 27, 2022
  8. Sep 22, 2022
  9. Apr 23, 2022
  10. Mar 27, 2022
  11. Mar 15, 2022
  12. Mar 14, 2022
  13. Mar 13, 2022
    • RenWal's avatar
      Fix arguments for ghostscript invocation · afea0e72
      RenWal authored
      afea0e72
    • RenWal's avatar
      Do not invoke commands through shell. Fixes #82 · 9209bce8
      RenWal authored
      Executing shell commands through mechanisms such as os.system() or
      subprocess.run(shell=True) with user-controllable input is prone to
      arbitrary shell command injection. In this particular case, a malicious
      actor controlling any input name, either in PDF or image form, can
      force ocrfeeder to execute shell commands embedded in the file name.
      While a workaround for #20, mentioning problems opening files with
      special characters, was introduced in 5286120c, this was not applied to
      every subprocess invocation. Furthermore, it is good practice to make
      use of the parameterization of arguments available in the subprocess
      package instead of relying on character escaping alone, avoiding shell
      invocation completely. This minimizes the attack surface.
      9209bce8
  14. Feb 13, 2022
  15. Feb 07, 2022
  16. Jun 07, 2021
  17. May 11, 2021
  18. Apr 13, 2021
  19. Mar 21, 2021
  20. Mar 17, 2021
  21. Feb 23, 2021
  22. Feb 01, 2021
  23. Jan 18, 2021
  24. Dec 25, 2020
  25. Nov 30, 2020
  26. Nov 24, 2020
  27. Nov 14, 2020
  28. Sep 02, 2020
  29. Jul 27, 2020
  30. Jul 19, 2020
  31. May 24, 2020
  32. Apr 26, 2020
  33. Apr 22, 2020
  34. Apr 12, 2020