-
-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from SasanLabs/Fix1
Adding Path Traversal Vulnerability
- Loading branch information
Showing
23 changed files
with
647 additions
and
439 deletions.
There are no files selected for viewing
25 changes: 12 additions & 13 deletions
25
...lnerability/jwt/bean/JWTResponseBean.java → ...ean/GenericVulnerabilityResponseBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,32 @@ | ||
package org.sasanlabs.service.vulnerability.jwt.bean; | ||
package org.sasanlabs.service.vulnerability.bean; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** @author KSASAN preetkaran20 */ | ||
public class JWTResponseBean { | ||
public class GenericVulnerabilityResponseBean<T> { | ||
|
||
@JsonProperty("JWTToken") | ||
private String jwtToken; | ||
@JsonProperty("content") | ||
private T content; | ||
|
||
@JsonProperty("isValid") | ||
private boolean isValid; | ||
|
||
public String getJwtToken() { | ||
return jwtToken; | ||
public GenericVulnerabilityResponseBean() {} | ||
|
||
public GenericVulnerabilityResponseBean(T content, boolean isValid) { | ||
this.content = content; | ||
this.isValid = isValid; | ||
} | ||
|
||
public void setJwtToken(String jwtToken) { | ||
this.jwtToken = jwtToken; | ||
public T getContent() { | ||
return content; | ||
} | ||
|
||
/* Here getter and setters are not as per the standard | ||
/* Here getter is not as per the standard | ||
* because of Jackson library issue. | ||
* <a href="https://stackoverflow.com/questions/32270422/jackson-renames-primitive-boolean-field-by-removing-is">Issue</a> | ||
*/ | ||
public boolean getIsValid() { | ||
return isValid; | ||
} | ||
|
||
public void setIsValid(boolean isValid) { | ||
this.isValid = isValid; | ||
} | ||
} |
142 changes: 79 additions & 63 deletions
142
src/main/java/org/sasanlabs/service/vulnerability/jwt/JWTVulnerability.java
Large diffs are not rendered by default.
Oops, something went wrong.
117 changes: 0 additions & 117 deletions
117
src/main/java/org/sasanlabs/service/vulnerability/lfi/UrlParamBasedLFI.java
This file was deleted.
Oops, something went wrong.
120 changes: 0 additions & 120 deletions
120
src/main/java/org/sasanlabs/service/vulnerability/lfi/UrlParamWithNullByteBasedLFI.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
src/main/java/org/sasanlabs/service/vulnerability/lfi/bean/UserInfo.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.