Skip to content

XSS in fallback link if url is controllable by attacker #296

Closed
@maple3142

Description

@maple3142

Here:

PDFObject/pdfobject.js

Lines 324 to 329 in 2c0bbd9

if(fallbackLink){
fallbackHTML = (typeof fallbackLink === "string") ? fallbackLink : fallbackHTML_default;
targetNode.innerHTML = fallbackHTML.replace(/\[url\]/g, url);
}

It only works on devices without pdf support like mobile devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions