Piotr Karwasz created SCXML-291:
-----------------------------------

             Summary: Document that SCXML documents must come from a trusted 
source
                 Key: SCXML-291
                 URL: https://issues.apache.org/jira/browse/SCXML-291
             Project: Commons SCXML
          Issue Type: Improvement
            Reporter: Piotr Karwasz


An SCXML document is a program: it can run scripts and, through {{src}} 
attributes ({{<script src>}}, {{<data src>}}, {{<invoke src>}}), make 
{{SCXMLReader}} and the executor load further resources from arbitrary URLs, 
including local files and internal network addresses.

The Commons security model already assumes that the input passed to a Commons 
API is trusted, but the SCXML documentation does not say so explicitly. Users 
who load state machines from user-supplied documents may not realize that this 
gives the document's author the ability to read resources and execute scripts 
in their application.

Suggested change: state in the {{SCXMLReader}} Javadoc and on the site that 
SCXML documents must come from a trusted source, and list the elements whose 
{{src}} attribute is resolved, with a pointer to the {{PathResolver}} / URL 
handling an application can restrict.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to