Git Product home page Git Product logo

Comments (3)

joshdick avatar joshdick commented on August 24, 2024
  • I'm not sure I fully understand the security issue you're trying to point out. The request headers that the browser sends will only contain data that was set by using the proxy. So, if you sign into GitHub without using the proxy, then access GitHub through the proxy, no GitHub cookie information will be sent because the browser is making requests to the proxy rather than to GitHub. Also, as of right now, miniProxy doesn't actually support cookies; the proxy doesn't persist them between page loads. Adding cookie support would be interesting since the browser always sees the proxy as a single site, but the proxy would need to properly handle cookies across multiple sites without exposing cookies between sites. The only reason I unset() specific request headers is because cURL needs to set those headers (and ignore the browser's headers) since cURL is actually talking to the remote server, not the browser.
  • Nice catch with the port numbers, I've just pushed a fix in adf9810.
  • Basic authentication inside URLs appears to work fine for me, so could you elaborate on this issue? The markup <a href="http://test:[email protected]/password-ok.php">testing basic auth</a> results in the properly proxied URL http://path/to/miniProxy.php/http://test:[email protected]/password-ok.php, and clicking on the proxied link shows that the server was able to read the basic auth credentials with no issues.

I'll keep this issue closed for now, until there's further action to be taken on it.

Thanks for your feedback!

from miniproxy.

toastbrotch avatar toastbrotch commented on August 24, 2024
  • i run the miniproxy on http://bla.com which requires authentication and uses cookies. so every request to bla.com contains those elements. miniproxy takes all headers and passes them on (without my fix). so in fact if i have a session-id inside the cookie-header, miniproxy passes this session-id on to another server, which is unnecessary. as miniproxy also sets its own url as referer, the target server basically got the the url bla.com and my session-id, which could lead to a security issue...
  • basic auth works for the first url, but if you click any link on that, the credentials are gone...

from miniproxy.

joshdick avatar joshdick commented on August 24, 2024
  • I believe I understand the issue now, but just to make sure: You're saying that you run the proxy at a domain where a DIFFERENT application requiring authentication/cookies also runs? And because they're both sharing the same domain, the browser request headers contain the cookie data for any/all applications associated with that domain, which the proxy is transparently passing through?
  • I see what you mean about the basic auth URLs. They were were broken in the same way as the previous port problem. I've pushed 7755481 which fixes that issue.

from miniproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.