Commit Graph
2643 Commits
Author SHA1 Message Date
James Nord f4172ebb56 [SECURITY-243] Unit Test.
Unit test to show the issue where some form of user property is used for
obtaining the information needed to loging (api token/ user property)
2016-04-20 18:53:21 +01:00
Jesse Glick 0a1e46570d Merge pull request #61 from jenkinsci-cert/SECURITY-232
[SECURITY-232] Integrating Remoting build with blacklist
2016-02-10 18:05:11 -06:00
Daniel Beck aa8b855af3 [SECURITY-247] Added doCreateItem test, improved loading test 2016-02-04 00:33:13 +01:00
Jesse Glick 1ec232ca1c [FIXED SECURITY-232] Integrating Remoting build with blacklist. 2016-02-03 17:40:36 -05:00
Daniel Beck 18cc8e0eb7 [FIX SECURITY-247] Prevent loading of MethodClosure from XML 2016-02-03 23:25:29 +01:00
Daniel Beck 97adb71aa4 [SECURITY-234] Use core's commons-codec and remove workaround 2015-12-02 00:23:36 +01:00
Daniel Beck f99cb46e06 [SECURITY-234] Add test. Add helper method for code reuse 2015-12-01 18:26:17 +01:00
Jesse Glick 704d2ee4fb Merge pull request #50 from jenkinsci-cert/SECURITY-225
[FIX SECURITY-225] Add RequirePOST annotations
2015-11-25 15:27:51 -05:00
Daniel Beck 83f18a8e6a [SECURITY-225] Fix failing tests 2015-11-16 01:03:08 +01:00
Daniel Beck d3fb2c09f2 [FIX SECURITY-95] Add CSP headers to files served by Jenkins 2015-11-15 19:52:25 +01:00
Kohsuke Kawaguchi a78b13e7d0 Merge branch 'security-stable-1.596' into security-stable-1.609 2015-11-10 10:17:04 -08:00
Kohsuke Kawaguchi de3bf08adb Merge branch 'security-stable-1.580' into security-stable-1.596 2015-11-10 10:16:36 -08:00
Kohsuke Kawaguchi 58fffa5141 Merge pull request #48 from jenkinsci-cert/SECURITY-218-tests
[SECURITY-218] - Functional tests for CLI
2015-11-10 10:12:20 -08:00
Oleg Nenashev 513c91acc7 [SECURITY-218] - Fix the obsolete TODO comment in the test 2015-11-10 20:43:13 +03:00
Jesse Glick f53d9a4797 Merge remote-tracking branch 'SECURITY-218-tests' into SECURITY-218-blackbox 2015-11-10 09:23:53 -05:00
Oleg Nenashev 1d129fb286 [SECURITY-218] - Fix library scopes 2015-11-10 17:22:22 +03:00
Jesse Glick ad099f05ac Use X-Jenkins-CLI-Host where defined. 2015-11-09 22:15:52 -05:00
Jesse Glick d7023f9a36 Need to rename environment variables since $JENKINS_URL is defined on CI. 2015-11-09 21:50:08 -05:00
Jesse Glick 3b59990a02 Merge remote-tracking branch 'security-stable-1.580' into SECURITY-218-blackbox 2015-11-09 21:05:46 -05:00
Jesse Glick b2ab469b6f Using ysoserial directly.
Trying to touch userContent rather than some random file, so that we can verify the result remotely.
Reducing rounds to two: one for capability, one for random transport commands.
2015-11-09 21:04:47 -05:00
Jesse Glick 430406cbac Merge remote-tracking branch 'security/SECURITY-218-tests' into SECURITY-218-blackbox 2015-11-09 20:21:54 -05:00
Jesse Glick 5bb0ed5c19 Reproduced original exploit. Framework of round tests, not yet confirmed to work. 2015-11-09 17:59:27 -05:00
Oleg Nenashev 83b41e40dc [SECURITY-218] - Rename tests to avoid conflicts with @jglick's changes 2015-11-10 01:33:10 +03:00
Oleg Nenashev 6a5157270d [SECURITY-218] - Refactor the test package to address comments from @jglick 2015-11-10 01:31:56 +03:00
Oleg Nenashev d3dc0e193a Fix NPE in tests 2015-11-10 01:27:54 +03:00
Jesse Glick 1503255313 Now operating at chunked transport level. 2015-11-09 17:02:55 -05:00
Jesse Glick e01d3c779c This is intended to be a true blackbox test: while we customize the client behavior, it can run against any server. 2015-11-09 14:56:46 -05:00
Jesse Glick 9e459755b3 CLI help command can run even against an instance with no anonymous read access, so use that. 2015-11-09 14:44:26 -05:00
Oleg Nenashev 93b8e00398 [SECURITY-218] - Fix Gadgets to make Spring test running 2015-11-09 20:24:35 +02:00
Oleg Nenashev 26cf74ea16 [SECURITY-218] - Adjust implementation to the remoting behavior after the fix 2015-11-09 20:14:32 +02:00
Oleg Nenashev ddf8d8a4aa [SECURITY-218] - Finalize the test implementatioin, the issue is reproducible 2015-11-09 19:32:30 +02:00
Oleg Nenashev 2056483870 [SECURITY-218] - Rework tests according to use fair class instance propagation over remoting 2015-11-09 17:45:31 +02:00
Kohsuke Kawaguchi 4c0d5ea643 Merge branch 'security-stable-1.596' into security-stable-1.609
Conflicts:
	cli/src/test/java/hudson/cli/ConnectionTest.java
	pom.xml
2015-11-07 21:41:42 -08:00
Kohsuke Kawaguchi 6653b5199e Merge branch 'security-stable-1.580' into security-stable-1.596
Conflicts:
	pom.xml
2015-11-07 21:39:05 -08:00
Oleg Nenashev b2b61cb200 Saved the progress 2015-11-08 06:07:42 +02:00
Jesse Glick bc69f8c11f Developed structure of blackbox test. 2015-11-07 18:39:27 -05:00
Kohsuke Kawaguchi aff88a0679 Test problem
anonymous Callable fails to serialize without this.

jnlpSlave(jenkins.security.Security218Test)  Time elapsed: 3.616 sec  <<< ERROR!
java.io.IOException: Unable to serialize jenkins.security.Security218Test$1@72a2ba17
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
    at hudson.remoting.UserRequest._serialize(UserRequest.java:158)
    at hudson.remoting.UserRequest.serialize(UserRequest.java:167)
    at hudson.remoting.UserRequest.<init>(UserRequest.java:63)
    at hudson.remoting.Channel.call(Channel.java:779)
    at jenkins.security.Security218Test.check(Security218Test.java:65)
    at jenkins.security.Security218Test.jnlpSlave(Security218Test.java:55)
2015-11-07 14:51:42 -08:00
Kohsuke Kawaguchi 8fd067938e Explaining how a simulated attack works 2015-11-07 14:06:40 -08:00
Kohsuke Kawaguchi 05b0a2a17c How is this payload rejected, you ask? 2015-11-07 14:00:46 -08:00
Kohsuke Kawaguchi b430d6d457 [SECURITY-218]
Added a test case for master/slave communication.
2015-11-07 14:00:46 -08:00
Kohsuke Kawaguchi a03c8b0763 Some ad-hoc integration-level testing with JenkinsRule 2015-11-07 12:01:29 -08:00
Jesse Glick 1d32134b5d Merge branch 'security-stable-1.596' into security-stable-1.609 2015-11-05 17:00:47 -05:00
Jesse Glick dbe3b5f529 Merge branch 'security-stable-1.580' into security-stable-1.596 2015-11-05 17:00:08 -05:00
Jesse Glick e77aa43b70 Strengthening test case slightly to verify that the security exception is the expected one. 2015-11-05 07:47:23 -05:00
Jesse Glick 1449f45284 For some reason secrets/master.key is not present during a CI build, though it is locally. 2015-11-05 07:13:30 -05:00
Jesse Glick 054a329c59 [SECURITY-206] Need to call ChannelConfigurator on JNLP slave channels. 2015-11-04 17:40:20 -05:00
Jesse Glick e5fe193b96 Merge branch 'security-stable-1.596' into security-stable-1.609 2015-11-04 11:22:31 -05:00
Jesse Glick b17077b098 Merge branch 'security-stable-1.580' into security-stable-1.596 2015-11-04 11:22:07 -05:00
Valentina Armenise 33b55588a6 [security-186]fix relative path 2015-11-04 16:25:33 +01:00
Jesse Glick 2d898fdae5 Merge branch 'security-stable-1.596' into security-stable-1.609 2015-10-28 13:42:55 -04:00