Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header Manipulation #1222

Closed
QiAnXinCodeSafe opened this issue Nov 26, 2021 · 0 comments
Closed

Header Manipulation #1222

QiAnXinCodeSafe opened this issue Nov 26, 2021 · 0 comments
Labels
fixed Fixed in released CoreNLP version

Comments

@QiAnXinCodeSafe
Copy link

String classifier = request.getParameter("classifier");
if (classifier == null || classifier.trim().isEmpty()) {
classifier = this.defaultClassifier;
}
response.addHeader("classifier", classifier);
response.addHeader("outputFormat", outputFormat);
response.addHeader("preserveSpacing", String.valueOf(preserveSpacing));

We found 'classifier' may be contaminated on line 152 of NERServlet.java.java.Including unvalidated data in an HTTP response header can enable cache-poisoning, cross-site scripting, cross-user defacement, page hijacking, cookie manipulation or open redirect..It will affect on line 157 of NERServlet.java.Lines 158 and 159 have similar problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Fixed in released CoreNLP version
Projects
None yet
Development

No branches or pull requests

3 participants