Skip to content
Snippets Groups Projects
  1. Apr 01, 2015
  2. Mar 24, 2015
  3. Mar 18, 2015
  4. Mar 17, 2015
    • Jared Hancock's avatar
      search: Fix search on create date · 4d26f29f
      Jared Hancock authored
      This addresses the issue where the advanced search dialog was submitted
      before the date picker inputs were fixed up. This problem arises out of a
      difference between the agent's date formatting preference and the server
      being able to process that date format. The date pickers are reformated to
      yyyy-mm-dd before submission; however, for advanced search, the submission
      happened before the inputs were fixed up.
      
      This patch addresses the issue by manually fixing up the date in the
      submission routine for the advanced search dialog.
      4d26f29f
  5. Mar 12, 2015
  6. Feb 18, 2015
  7. Feb 11, 2015
    • Jared Hancock's avatar
      login: Require CSRF token to login · 504831fe
      Jared Hancock authored
      This patch fixes a vulnerable scenario, where sequential login attempts can
      be made without an existing session, and without a valid CSRF token. This
      scenario lends itself well for brute force password attempts, because
      attackers can avoid using a session and still send requests to determine if
      a set of credentials are valid. This vector also avoids the authentication
      lockout mechanism, because it requires an ongoing session to shutdown the
      requests.
      
      This patch addresses the issue by requiring a session and a valid CSRF token
      generated by the server and placed in the session to be submitted with the
      credentials. Therefore, an existing session and a Cookie header are required
      to process a login attempt. Secondly, the CSRF token will be changed on the
      server after each login processed. Therefore, for each session, a subsequent
      GET request would be necessary before submitting another login attempt.
      504831fe
  8. Feb 06, 2015
  9. Jan 14, 2015
    • Jared Hancock's avatar
      Session never expires · ee072130
      Jared Hancock authored
      This patch sends updated session cookies to the browser when the session is
      refreshed on the server. This allows the session cookie to expire on the
      browser at the same time the session timeout occurs at the server. In the
      event the session timeout is configured in osTicket not to expire, the
      cookie will expire after seven days on the client browser, and will expire
      in PHP when it is garbage collected sometime after 86400 seconds after the
      time last refresh time.
      
      Using this method, the session will never expire if the session timeout in
      osTicket is configured to 0, and the session is refreshed at least daily.
      ee072130
  10. Dec 31, 2014
    • Jared Hancock's avatar
      files: Provide unified download script · d9cf38bc
      Jared Hancock authored
      This script adds a single download script, 'file.php', which provides access
      to files of all types to all users. It uses a HMAC signature system with an
      expires time, which allows signed URLs to be sent to external users.
      
      This also fixes an issue with the Http::cacheable() method, where the
      last-modified and Etag headers were not properly compared, which resulted in
      permanent cache misses by the client.
      d9cf38bc
  11. Dec 28, 2014
    • Peter Rotich's avatar
      Retire l.php · b647d1aa
      Peter Rotich authored
      Stop trampolining links via l.php. It was necessary before in order to avoid
      the potential of leaking ticket number & email. The authentication mechanism
      in place now redirects on successful login.
      b647d1aa
  12. Dec 16, 2014
    • Jared Hancock's avatar
      ui: Implement "enable canned responses" config option · d5e8ac09
      Jared Hancock authored
      This patch removes the selection of canned responses as well as the canned
      responses navigation page from the ui when the canned responses feature is
      disabled.
      d5e8ac09
    • Jared Hancock's avatar
      lock: Set ticket lock on ticket-view · 1ab0f541
      Jared Hancock authored
      Since the automatic lock was being acquired but not passed to the autoLock
      system, the automatically acquired lock was not being release on away
      navigation.
      
      This patch addresses the issue by passing the automatically acquired lock id
      to the autoLock system on ticket-view page load and change the ::Init()
      method so that the lock id is not cleared with the ::Init() method is called
      by the page load.
      1ab0f541
  13. Oct 15, 2014
  14. Oct 10, 2014
  15. Oct 09, 2014
  16. Oct 06, 2014
  17. Oct 03, 2014
  18. Oct 02, 2014
  19. Oct 01, 2014
  20. Sep 30, 2014
    • Matt Kirman's avatar
      Dashboard statistics should use 'period' as the date limiter · c1abffd7
      Matt Kirman authored
      The statistics module on the dashboard was using the incorrect query parameter
      'stop'. This meant that the module was loading all tickets from the report start
      date to the present day. This commit fixes this by using the 'period' parameter
      instead.
      c1abffd7
  21. Sep 29, 2014
    • Jared Hancock's avatar
      forms: Revisit several small issues for "info" field · e9dfba9c
      Jared Hancock authored
        * Use the title of "Information" with internal tag of "info"
        * Add "Visibility" column to UI and retire "Required" and "Internal"
          columns
        * Add visibility selection to new fields and show visibility to the user
          information fields when displayed on the ticket details form
        * Make the visibility settings translatable
        * Use constants internally for visibility configuration detection
        * Use a larger input when managing the information HTML content
        * Fix validation errors for new fields
          * Enforce new field name uniqueness
          * Enforce new field name character validation
      e9dfba9c
  22. Sep 26, 2014
  23. Sep 25, 2014
  24. Sep 19, 2014
    • Peter Rotich's avatar
      Remove "resolved" state · c1cdf82c
      Peter Rotich authored
      This is necessary to avoid confusion vs. closed state.
      c1cdf82c
    • Jared Hancock's avatar
      forms: Add new visibility property · 85f87cf2
      Jared Hancock authored
      This allows fields to specify a visibility constraint that will be evaluated
      in real time in the browser to automatically show and hide fields that
      should be hidden based on values of other fields in the same form.
      
      Validation is not performed on fields server-side if they are considered
      invisible when submitted.
      85f87cf2
  25. Sep 17, 2014
    • Jared Hancock's avatar
      pages: Fix incorrect lookup of inline images · eb4d1b36
      Jared Hancock authored
      In some cases, a POST might be sent to the server and there be no draft. In
      such a case, neither the draft nor the body of the page can be inspected for
      images. Even worse, in some cases the previous images might be unlinked from
      the article without being relinked. Therefore, the images will no longer be
      linked to the page and will likely be purged from the system.
      eb4d1b36
  26. Sep 10, 2014
Loading