50°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Jim Manico @ Kauai https://twitter.com/manicode   •   Mar 31
    How do you safely do this?

    HTTPS://site.com/data/ + protect(untrusted);

    URL encoding is not the answer, it still allows path traversal. Base64 encoding is not the answer, the + and / characters, legal in base64, can skew a URL.
    Aaron Parecki
    what kind of protection? A JWT could work there, it uses only URL safe characters, and is integrity protected. If you don't need integrity protection then just URL safe Base64 I guess
    American Airlines Flight 1986 DFW to PDX in Dallas, Texas • 82°F
    Fri, Mar 31, 2023 5:48pm -05:00
    1 like 4 replies
    • Jim Manico @ Kauai
    • Jim Manico @ Kauai twitter.com/manicode
      Just looking for safely at time of url construction. Extraction, decoding and reuse in another url will require additional encoding.
      Fri, Mar 31, 2023 11:16pm +00:00 (via brid.gy)
    • Jim Manico @ Kauai twitter.com/manicode
      Most important use cases are sending data to a server that is added to a path for a REST request, SSRF weakness. Also, building dynamic URL’s in templates and web Ui’s.
      Fri, Mar 31, 2023 11:01pm +00:00 (via brid.gy)
    • Aaron Parecki twitter.com/aaronpk
      Ultimately the question is where does the untrusted data come from and how is it used, because URL-safe-base64-encoding a "../" will just decode to "../" on the other side.
      Fri, Mar 31, 2023 11:00pm +00:00 (via brid.gy)
    • Jim Manico @ Kauai twitter.com/manicode
      SafeBase64 protects against path traversal or path manipulation where urlencoding and normal Base64 do not!
      Fri, Mar 31, 2023 10:50pm +00:00 (via brid.gy)
Posted in /replies using indigenous.abode.pub/ios

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv