GithubHelp home page GithubHelp logo

Comments (6)

DFi-Security avatar DFi-Security commented on June 10, 2024 1

Hello,

The MISP API is very simple to use :

Request is like this :
curl -X POST -k -H 'Accept: application/json' -H 'Authorization: API Key' -H 'Content-Type: application/json' -i 'https://URL/attributes/restSearch' --data '{"value":"foobar"}'

Mandatory parameters :

  • API Key (can be setup by user like VT API Key)

  • URL (can be setup by user like VT API Key)

  • value can be anything no need to specify the type like IP or URL or Domain.

Hope it helps :)

from mitaka.

ninoseki avatar ninoseki commented on June 10, 2024 1

Postman doesn't use native cURL. It uses XHR and requires wild-card permissions.

    "permissions":["cookies", "storage", "http://*/*", "https://*/*"],

from mitaka.

ninoseki avatar ninoseki commented on June 10, 2024

Thank you for giving a feature request.

Could you give more detailed information?
(Please refer to #164. This kind of information is useful for implementation.)

from mitaka.

ninoseki avatar ninoseki commented on June 10, 2024

Thanks. I think there are 2 issues for implementing the feature.

  1. Mitaka is a Chrome extension which opens a website based on a search/scan action.

    • POST /attributes/restSearch returns a JSON response. It doesn't include a URL to a search result page.
    • It’s possible to show a notification based on the JSON but it’s off the rails IMO.
  2. Cross-Origin XMLHttpRequest

    • Chrome extension(content scripts) is subject to the Same-origin policy.
    • Sending HTTP request to MISP instances is also subject to the restriction.
    • It’s possible to set a wild-card permission (e.g. https://*) but I don’t like that because of security concerns.

Do you have any ideas to figure out these issue?

from mitaka.

DFi-Security avatar DFi-Security commented on June 10, 2024

Hello,

If you're using XHR yes we will have a problem with the SOP and CORS, but is it possible to do a CURL POST like postman or something else ?
In this case we don't have any origin, just an API call to the MISP server.

from mitaka.

ninoseki avatar ninoseki commented on June 10, 2024

Close this issue because it seems like there is no solution to solve the FR.

from mitaka.

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.