Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Any plans to support JSP? #17646

Answered by aibaars
slominskir asked this question in Q&A
Discussion options

It appears codeql doesn't currently detect Java Server Pages (JSP) Reflected Cross Site Scripting vulnerabilities. Any plans to support it? Rule may roughly involve looking for ${param.*} in JSP file and if that value isn't one of the three exemption cases then it's vulnerable. The exemption cases being:

  1. isn't located inside a <c:out value="${?}"/>
  2. isn't located inside a ${fn:escapeXml(?)}
  3. isn't part of an expression with a function call or operand such as eq
You must be logged in to vote

Thanks for your question. There has been some work on JSP support in the past, but I don't think it has become a fully supported feature.

If you're curious you could try running CodeQL with the environment variable CODEQL_EXTRACTOR_JAVA_JSP=true. Note that experimental features should typically be avoided for production use.

command="mvn clean package -P tomcat8Jsp", _env={"CODEQL_EXTRACTOR_JAVA_JSP": "true"}

Replies: 1 comment

Comment options

Thanks for your question. There has been some work on JSP support in the past, but I don't think it has become a fully supported feature.

If you're curious you could try running CodeQL with the environment variable CODEQL_EXTRACTOR_JAVA_JSP=true. Note that experimental features should typically be avoided for production use.

command="mvn clean package -P tomcat8Jsp", _env={"CODEQL_EXTRACTOR_JAVA_JSP": "true"}
You must be logged in to vote
0 replies
Answer selected by slominskir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /