Giter Club home page Giter Club logo

Comments (10)

ssl avatar ssl commented on June 18, 2024 1

This should fix it; 917a25b

from ezxss.

phosec avatar phosec commented on June 18, 2024 1

Looks good, I'm receiving the alert now! Thanks :)

from ezxss.

ssl avatar ssl commented on June 18, 2024

Hi,

This is already fixed in master in commit Fixes escaping and failing issues in alerts

from ezxss.

phosec avatar phosec commented on June 18, 2024

I'm on master,
I have the escapedData code in the above screenshot ^

from ezxss.

ssl avatar ssl commented on June 18, 2024

This is the fix for the discord screenshot: 0a6d380#diff-b4e545d7ab18aaf8d999af13133fa0411a704721442dc0dce17771be40c15d2f

Do you have that like that aswell?

from ezxss.

phosec avatar phosec commented on June 18, 2024

Yep, looks like I have it, the latest commit I'm using :

# git log | head
commit 0a6d380ad9b7c7f559af46a4de2bd294ae2160f1
Author: ssl <[email protected]>
Date:   Thu Apr 6 22:35:39 2023 +0200

    Fixes escaping and failing issues in alerts

from ezxss.

ssl avatar ssl commented on June 18, 2024

Can you debug by printing the discordMessage and checking whats inside 'screenshot'?

from ezxss.

phosec avatar phosec commented on June 18, 2024

You can reproduce with this curl :

curl -H "Content-Type: application/json" -d '{"username":"ezXSS","embeds":[{"title":"[ezXSS] XSS Report #29","type":"rich","url":"https://example.com/manage/reports/view/29","timestamp":"2023-04-08T15:09:31+02:00","color":2924135,"fields":[{"name":"URL","value":"https://example.com/"},{"name":"IP","value":"x.x.x.x"},{"name":"Referer","value":""},{"name":"Payload","value":"//example.com/"},{"name":"User Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36"},{"name":"Cookies","value":""},{"name":"Origin","value":"example.com"}],"image":{"url":"data:image/png;base64,<base64 image>"},"footer":{"text":"github.com/ssl/ezXSS"}}]}' "https://discord.com/api/webhooks/xxxxx/xxxxxx"

It returns {"embeds": ["0"]}

from ezxss.

ssl avatar ssl commented on June 18, 2024

The problem is 'data:image/png;base64,'

This should be a URL, as done in

$data->screenshot = "https://{$data->domain}/assets/img/report-{$data->screenshotName}.png";

from ezxss.

ssl avatar ssl commented on June 18, 2024

I already understand why

from ezxss.

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.