GithubHelp home page GithubHelp logo

Security concern about 0bin HOT 4 CLOSED

antenore avatar antenore commented on August 17, 2024
Security concern

from 0bin.

Comments (4)

Glandos avatar Glandos commented on August 17, 2024

Your server shouldn't have access to the URL anchor. The anchor is the key.

from 0bin.

antenore avatar antenore commented on August 17, 2024

Thanks for the answer.

When a user open one of the URI, the web server serving the URL will log the request with 200 status code, with the origin IP, the URL that has been requested with the anchor and status obviously.

So a web server administrator could potentially read all the pastes.

Or either I didn't understand πŸ˜ƒ

from 0bin.

Glandos avatar Glandos commented on August 17, 2024

No, anchors are not sent to the server. You can test it:

curl 'http://httpbin.org/anything?hello#prout' -H 'Host: httpbin.org' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: fr-FR,fr;q=0.7,en;q=0.3' --compressed -H 'Referer: http://httpbin.org/' -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1'

{
  "args": {
    "hello": ""
  }, 
  "data": "", 
  "files": {}, 
  "form": {}, 
  "headers": {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", 
    "Accept-Encoding": "deflate, gzip, br", 
    "Accept-Language": "fr-FR,fr;q=0.7,en;q=0.3", 
    "Host": "httpbin.org", 
    "Referer": "http://httpbin.org/", 
    "Upgrade-Insecure-Requests": "1", 
    "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0", 
    "X-Amzn-Trace-Id": "Root=1-613f718a-39131679146859702bab09aa"
  }, 
  "json": null, 
  "method": "GET", 
  "origin": "212.99.28.166", 
  "url": "http://httpbin.org/anything?hello"
}

from 0bin.

antenore avatar antenore commented on August 17, 2024

Thanks, I've learned something :-P

from 0bin.

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.