Questions tagged [crlf-vulnerability]

40 questions
4
votes
3 answers

Spring Boot: CRLF - Securely log payload in REST API

I have a Spring Boot app which exposes a REST API. I need to log the payload to be able to find errors in the JSON in the API calls. I have ran a code analysis tools that reports the following security risk when I log the…
user1766169
  • 1,932
  • 3
  • 22
  • 44
4
votes
1 answer

Custom page for HTTP 404 page URL in Jenkins

My Jenkins is running on https://myhost:9043 using the standalone war on Linux with the below command. java -jar jenkins.war However, when I try the following URL for say https://myhost:9043/ the resource uri is obviously not…
Ashar
  • 2,942
  • 10
  • 58
  • 122
4
votes
1 answer

Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE ID 93)

In Veracode report I am getting Error CWE 93 in some of the java files. In Instance of static scan some code is MimeMessage msg = new MimeMessage(session); msg.setFrom(new InternetAddress(msmtpfrom)); 2.msg.setRecipients(Message.RecipientType.TO,…
Jaydeep Bobade
  • 1,005
  • 2
  • 16
  • 25
4
votes
2 answers

How to prevent code injection with EL expression

While I am using the JSF and I am trying to find the ValueExpression with below code: public static final ValueExpression createValueExpression( final FacesContext context, final ELContext elContext, final String ev, final…
3
votes
0 answers

Format string %n of printf function doesn't work

#include int main(){ int a=100; printf("aaaaa%n",&a); printf("%d",a); } I used gcc to compile it ( :gcc a.c ) however, its output is as follows aaaaa100 The value of a doesn't change by the printf's %n format string I…
peng xu
  • 385
  • 1
  • 3
  • 6
2
votes
2 answers

How can i change this code to be vulnerable of CRLF injection?

I create a simple spring web project, and there is only one Controller in the project, its code is: package com.example.sbtest.controller; import javax.servlet.http.HttpServletResponse; import org.springframework.stereotype.Controller; import…
mtfly
  • 35
  • 6
2
votes
1 answer

Cacheleak vulnerability magento var folder issue

I have scan my site using https://www.magereport.com. I got Cacheleak vulnerability? unprotected issue. I need to know to fix this issue i have to define "location ^~ /var/ { return 403; }" , please tell me where i will add this code , if in htacess…
2
votes
1 answer

Preventing CRLF vulnerability on request header

i'm trying to fix the CRLF vulnerability on my application logger im currently logging my http request Path is there a way to validate this one? to remove any CR LF injection on my request Path im currently using c# as my programming language this…
bRaNdOn
  • 1,060
  • 4
  • 17
  • 37
2
votes
1 answer

Improper Neutralization of CRLF Sequences ('CRLF Injection') in Mailadress in JAVA

This code: InternetAddress[] myAdrs = getAdrs(message.getToAddresses()); for (int i = 0; i < myAdrs.length; i++) { String s = myAdrs[i].getAddress(); s =…
Dan
  • 41
  • 2
  • 7
2
votes
1 answer

WSO2 IS 5.2.0 CSRF Protection via CSRFGuard and/or CSRF Filter/Valve?

The documentation of WSO2 Identity Server 5.2.0 describes the usage of CSRF Filter or CSRF Valve as a way to mitigate CSRF attacks - see: WSO2 IS 5.2.0 Documentation. The configuration for that was available in carbon.xml of IS 5.1.0 but is missing…
Hos
  • 447
  • 4
  • 11
1
vote
0 answers

How to solve cloud defense CRITICAL SEVERITY from pom,xml

CRITICAL - org.yaml:snakeyaml - Improper Input Validation VULNERABILITY CRITICAL CWE-20 CVE-2022-1471 CVSS 9.8 Introduced through: org.yaml:snakeyaml :1.27 Discovered on: Dec 1, 2022, 11:15 AM License(s): Apache-2.0 Exploit: 3.9 Fixed in: Not…
1
vote
1 answer

Input Validation and Representation - Header Manipulation: Cookies- C# Cookies - Header

Fortify has reported below issue Input Validation and Representation - Header Manipulation: Cookies HttpApplication application = (HttpApplication)source; if (application.Context.Handler is IRequiresSessionState) { …
1
vote
0 answers

How to Prevent External Service Interaction (DNS)

What is the meaning of Remediation of vulnerabilities and how to Implement it. Please advise. Thank you. (1)It is recommended to implement a whitelist of permitted services and hosts, and block any interactions that do not appear on this…
tim
  • 13
  • 5
1
vote
1 answer

CRLF Injection vulnerability while using slf4j LOGGER in Veracode (CWE 117)

It's a slf4j logger and i have been trying to log error with 2 messages parameters. catch(ExecutionException executionException) { LOGGER.error("TimeoutException caught , Error: " + SSG_TIMEOUT.getErrorText() + ". Message: "…
1
vote
1 answer

How to add HTTP Headers to Jenkins

I run the latest jenkins as a standalone as below. java -jar jenkins.war We used self-signed SSL certificate. When we access the Jenkins console and observe the HTTP response headers we see critical HTTP headers missing like for example…
Ashar
  • 2,942
  • 10
  • 58
  • 122
1
2 3