OAuth timestamp sensitivity

dounddound Registered Users Posts: 72 Big grins
Lower bound: It looks like timestamps more than 300 seconds before the current time.

Upper bound: However, there doesn't seem to be any upper bound on how far after the current time they can be (it didn't seem to mind even if I set the timestamp a billion seconds [~30 years] in the future). Is this the intended behavior? It seems like there might need to be a cap on how far in the future something is too, otherwise you'll end up having to save all these way off in the future timestamp/nonce combinations for 30 years to prevent reply attacks.

Anyway, I'll of course just use the current timestamp since there's no chance it will sit around for 5 minutes before I manage to send it off to SmugMug.

Vulnerable to replay? Also, I noticed that I can resend a given timestamp/nonce and the SmugMug API happily re-executes it. It doesn't seem like the API is checking for reused timestamp+nonce combinations. Are you seeing this too?

Comments

  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited April 23, 2010
    Both issues are resolved internally..and will go out with this week's release.

    Cheers,

    David
    David Parry
    SmugMug API Developer
    My Photos
  • devbobodevbobo Registered Users, Retired Mod Posts: 4,339 SmugMug Employee
    edited April 23, 2010
    Changes are live
    David Parry
    SmugMug API Developer
    My Photos
  • dounddound Registered Users Posts: 72 Big grins
    edited April 23, 2010
    Thanks David. I tried it out and the changes are working great.
Sign In or Register to comment.