Skip to content

New UnsafeDeserialization sink and improvements to SnakeYaml sink#4603

Merged
aschackmull merged 10 commits intogithub:mainfrom
pwntester:new_deser_sink
Nov 5, 2020
Merged

New UnsafeDeserialization sink and improvements to SnakeYaml sink#4603
aschackmull merged 10 commits intogithub:mainfrom
pwntester:new_deser_sink

Conversation

@pwntester
Copy link
Contributor

No description provided.

@pwntester pwntester requested a review from a team as a code owner November 4, 2020 09:30
@github-actions github-actions bot added the Java label Nov 4, 2020
@aschackmull
Copy link
Contributor

Looks good. Could you add a change note stating that the unsafe deserialization query has been improved with the additional sink? Look in java/change-notes for examples.

Alvaro Muñoz and others added 3 commits November 4, 2020 10:43
…n-sinks.md

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
aschackmull
aschackmull previously approved these changes Nov 4, 2020
@aschackmull
Copy link
Contributor

Error: The following CodeQL elements are lacking documentation:
semmle/code/java/frameworks/apache/Lang.qll  Lang::MethodApacheSerializationUtilsDeserialize  class

}
}

class MethodApacheSerializationUtilsDeserialize extends Method {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the error indicates, this class needs qldoc.

}

/*--- Methods ---*/
/** The method `deserialize` in either `org.apache.commons.lang.SerializationUtils`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This qldoc is not formatted correctly, and indeed we get:

[ERROR] Input file ql/java/ql/src/semmle/code/java/frameworks/apache/Lang.qll is not correctly formatted

@aschackmull aschackmull merged commit 45d117b into github:main Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants