https://bz.apache.org/bugzilla/show_bug.cgi?id=70309

            Bug ID: 70309
           Summary: mod_md: ARI renewal time can fall outside the
                    suggested window
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_md
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

When `MDRenewViaARI` is enabled, `mod_md` can select a renewal time before the
CA's suggested ARI window.

In `acme_get_ari()`, the current calculation subtracts 128 from a random byte
and scales the result by the window length. For a 24-hour window, half of the
possible values select a time before the window starts, while the remaining
values only cover its first 12 hours. A window with identical start and end
times is also accepted.

There are two related problems with RFC 3339 parsing. Timezone offsets such as
`+02:30` lose the hour component, and fractional seconds are discarded. This
can shift the suggested window or turn a valid subsecond window into an empty
one.

I reproduced these cases with Pebble by setting controlled ARI responses
through `/set-renewal-info/` and checking the renewal time in the `md:debug`
log.

The ARI-selected time should fall within a valid suggested window, and invalid
windows should be rejected. The timestamp parser should preserve timezone
offsets and fractional seconds. A patch with regression tests is available.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to