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

Possible Stored XSS Vulnerability in N-blog #484

Open
ajinabraham opened this issue Apr 23, 2020 · 0 comments
Open

Possible Stored XSS Vulnerability in N-blog #484

ajinabraham opened this issue Apr 23, 2020 · 0 comments

Comments

@ajinabraham
Copy link

ajinabraham commented Apr 23, 2020

RULE ID: rule.ejs_ect_template
DESCRIPTION: The EJS/ECT template has an unescaped variable. Untrusted user input passed to this variable results in Cross Site Scripting (XSS).
TYPE: Regex
PATTERN: <%-(?![ ]include().%>
SEVERITY: ERROR
INPUTCASE: exact
CWE: CWE-79
OWASP: A1 - Injection

FILES_________

File: /N-blog-master/views/components/comments.ejs
Match Position: 712 - 734
Match String: <%- comment.content %>
Line: https://github.com/nswbmw/N-blog/blob/master/views/components/comments.ejs#L18

File: N-blog-master/views/components/post-content.ejs
Match Position: 567 - 586
Match String: <%- post.content %>
Line: https://github.com/nswbmw/N-blog/blob/master/views/components/post-content.ejs#L15

Detected by njsscan: https://github.com/ajinabraham/njsscan

@ajinabraham ajinabraham changed the title Possible XSS Vulnerability in N-blog Possible Stored XSS Vulnerability in N-blog Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant