mirror of
https://github.com/github/codeql.git
synced 2026-04-21 23:14:03 +02:00
Documentation fixes
This commit is contained in:
@@ -398,6 +398,7 @@ class GetServletResourceAsStreamMethod extends Method {
|
||||
}
|
||||
}
|
||||
|
||||
/** The interface `javax.servlet.http.HttpSession` */
|
||||
class HttpServletSession extends RefType {
|
||||
HttpServletSession() { this.hasQualifiedName("javax.servlet.http", "HttpSession") }
|
||||
}
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
<p>
|
||||
In the first (bad) example, the server accepts a parameter from the user and uses it to set the username without validation.
|
||||
</p>
|
||||
<sample src="examples/TrustBoundaryVulnerable.java" />
|
||||
<sample src="TrustBoundaryVulnerable.java" />
|
||||
|
||||
<p>
|
||||
In the second (good) example, the server validates the parameter before using it to set the username.
|
||||
</p>
|
||||
<sample src="examples/TrustBoundaryFixed.java" />
|
||||
<sample src="TrustBoundaryFixed.java" />
|
||||
|
||||
</example>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user