Coder Social home page Coder Social logo

Comments (4)

marstr avatar marstr commented on September 26, 2024

Howdy @jvbeck,

You must be looking at code like the following:

protected String getTagsXml() {
StringBuffer buf = new StringBuffer();
if (!tags.isEmpty()) {
buf.append("<Tags>");
for (Iterator<String> i = tags.iterator(); i.hasNext();) {
buf.append(i.next());
if (i.hasNext())
buf.append(",");
}
buf.append("</Tags>");
}
return buf.toString();
}

Are you experiencing any trouble derived from this, or are you just noting a potential improvement?

from azure-notificationhubs-java-backend.

jvbeck avatar jvbeck commented on September 26, 2024

Hi, I am also referring to code like

https://github.com/Azure/azure-notificationhubs-java-backend/blob/master/NotificationHubs/src/com/windowsazure/messaging/AppleRegistration.java#L69-L78

This sample occurs in every Registration class.

If the NH registration is done by the back-end then the PNS handle must be transferred from the mobile device to the back-end.

I do not know how much mischief could be caused by this XML injection. I merely note that it is possible.

I can easily workaround the problem by overriding the getXml method in "fix" classes that extend the provided Registration classes.

from azure-notificationhubs-java-backend.

jvbeck avatar jvbeck commented on September 26, 2024

Note also my comment on #44

from azure-notificationhubs-java-backend.

mpodwysocki avatar mpodwysocki commented on September 26, 2024

@jvbeck After review, our backend is not vulnerable to XML Injection attacks but will make a note of this for future versions.

from azure-notificationhubs-java-backend.

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.