Jump to content

[POC] Rails in the Middle - A Web-content Proxy


Recommended Posts

I started this quick POC, which uses Rails as a web-content proxy to allow intercepting and modifying html pages.

[End User Request  > My Bad URL > Actual server > My Bad URL > Nokogiri (modify response) > End User Response]

It's pretty bare bones and allows you to browse any website at your own URL, modifying the response in the middle.




Seems like an interesting loophole.  Even with CORs set up properly, assets could be stored and re-served to the end user.

Edited by bg-wa
Link formatting
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...