Commit Graph
18 Commits
Author SHA1 Message Date
Jakub Nyckowski 9accc2f9ff Remove restricted sessions (#36814)
* Remove restricted sessions

* Remove missing reference to restricted session

* Update CHANGELOG.md to remove outdated SSH feature

The commit removes the reference to the deprecated and removed SSH restricted sessions feature from the CHANGELOG.md file. The restricted session feature had been phased out since Teleport 14, and this update reflects its removal in Teleport 15.

* Rephrase the changelog note that it's recommends the implementation of network restrictions outside of Teleport like iptables and security groups.
2024-01-18 17:28:22 +00:00
Mike Jensen 0510fe1ae3 tty_playback: Fix handlePlaybackAction panic on unit16 overflow (#36409)
* tty_playback: Fix `handlePlaybackAction` panic on unit16 overflow

Because the addition was happening prior to the cast it was possible to bypass the length check and result in a panic.

* `handlePlaybackAction` Add Fuzzing seeds and enabled in oss-fuzz
2024-01-08 18:56:45 +00:00
Mike Jensen 3c6a2f0c0c Disable fuzz_parser_eval_bool_predicate in oss-fuzz (#33838)
This test seems to false positive with timeouts semi-frequently.  These timeouts are not reproducible outside of oss-fuzz.
2023-10-23 21:15:32 +00:00
Mike Jensen 1f9cf6b9c3 oss-fuzz-build.sh: Remove FuzzParseWebLinks (#31998)
This test has had two failures (timeouts) on oss-fuzz that are false positives (5894581923479552 & 5112269123747840).  Both are very large and when run in go fuzz are not reproducible (local execution ~2 seconds)

Disabling due to the false positives
2023-09-18 22:10:58 +00:00
Mike Jensen 259767fde7 MFA Fuzzing and Json Unmarshal Panic fix (#30854)
This expands the coverage of fuzzing in `lib/web/fuzz_test.go` and includes adding seeds.
From this work a new panic was discovered where a pointer is allocated then a pointer to the pointer is passed into json.Unmarshal.  It is then possible for this original pointer to remain a `nil` reference.

This pattern looks unexpected, so all cases of double pointers being passed into json.Unmarshal were changed to the more standard empty struct pointer style to avoid potential nil reference panics.
2023-08-22 16:34:31 +00:00
Mike Jensen 94562cf023 Fuzz Test Improvements 3 (#30576)
* restrictedsession/fuzz_test.go: Add basic IP and CIDR seeds

* proxyline_test.go: Add fuzzing for Proxy Line v1

Adds a fuzzing test case and seeds for proxy line v1.
This commit also enables both fuzzing tests in oss-fuzz.

* client/fuzz_test.go: Add fuzz coverage and seeds

This adds some fuzzing coverage to some previously missing functions.
In addition seeds (primarily from unit test cases) were added to all fuzz test cases, and all cases were enabled in oss-fuzz.

* Add fuzzing for lib/auth/webauthncli.parseU2FRegistrationResponse

This adds fuzzing coverage and seeds for the function `parseU2FRegistrationResponse`.  This commit also enables this test in oss-fuzz.
2023-08-17 14:55:15 +00:00
Mike Jensen e07ab47354 Disable mongoDB fuzzing in oss-fuzz (#30063) 2023-08-04 20:40:44 +00:00
Mike Jensen b90e362e7b Fuzz Test Improvements (#29918)
* Added Fuzz Seeds for services/fuzz_test.go

* Fuzzing improvements for `lib/srv/db` fuzzing

This ensures that all fuzzing under `lib/srv/db` has the following:
* Good seeds that provide basic levels of coverage
* Enabled in OSS-Fuzz

* Fuzzing improvements for `lib/sshutils`

This improves the fuzzing in `lib/sshutils/sftp/parse_test.go` and `lib/sshutils/x11/display_test.go`.
Seeds were added and additional local fuzzing was done.  In addition these functions are now enabled in `oss-fuzz`.
2023-08-02 18:55:55 +00:00
Mike Jensen 20b8f9cff0 Update MongoDB Driver to master commit (#29656)
This updates the MongoDB driver to use a recent master commit in order to incorporate the fix: https://github.com/mongodb/mongo-go-driver/pull/1291 (which has not been released to a tag yet)

In addition a fuzz seed was added to cover this condition.  After not finding more issues this also re-enables the MongoDB fuzzing in oss-fuzz.
2023-07-27 14:47:04 +00:00
Mike Jensen 3f6e26ae07 Fuzzing test improvements (#28066)
* Remove lib/fuzz

These fuzz targets are already configured elsewhere.  oss-fuzz targets are configured in `fuzz/oss-fuzz-build.sh`

* aws_test.go: Add FuzzParseSigV4

This adds (and enables in oss-fuzz) a new fuzz test case (and seed) for aws.go's ParseSigV4

* api/types/fuzz_test.go: Add fuzzing seeds

* api/utils/aws/fuzz_test.go: Add basic seeds to get broad coverage

* api/utils/azure/fuzz_test.go: Add seeds and enable in oss-fuzz

* lib/utils/parse/fuzz_test.go: Add fuzzing seeds

* Add opensearch fuzzing to oss-fuzz

* lib/srv/db/redis/connection/fuzz_test.go: Add fuzzing seeds

* lib/kube/proxy/fuzz_test.go: Add fuzzing seeds

* lib/srv/regular/fuzz_test.go: Add Fuzzing Seeds

* lib/utils/fuzz_test.go: Add fuzzing seeds
2023-06-20 16:14:15 +00:00
Krzysztof Skrzętnicki abcd527641 Fuzz TDP protocol, fix two issues. (#25260)
* Add FuzzDecode covering tdp protocol.

* Add FuzzDecode to oss-fuzz

* Limit PNG2Frame size.

* Fix decodeSharedDirectoryAnnounce incorrectly consuming 4 extra bytes.
2023-04-27 15:13:21 +00:00
Gavin Frazar 5bb0ef15db add dynamodb database access (#18843)
* Add a new db engine
* Add tests for new engine
* Update tsh db subcommands
* Refactor error message and suggestions for unsupported tsh commands
* Add dynamodb to test plan
* Add AWS external ID to db config and update protos
2022-12-30 18:22:30 +00:00
Mike Jensen e1c7304e21 Disable FuzzMongoRead test due to instability (#19418) 2022-12-16 16:34:10 +00:00
Zac Bergquist dca43edffc fuzz: fix broken OSS-Fuzz build (#18814)
Signed-off-by: AdamKorcz <adam@adalogics.com>
Signed-off-by: Zac Bergquist <zac.bergquist@goteleport.com>
2022-11-29 18:42:26 +00:00
Cam Hutchison 45642fbc0e Remove SAML connector and tests (#18285)
Remove the SAML connector from the OSS repository. It has been migrated
to the enterprise repository.
2022-11-28 14:45:12 +11:00
Reed Loden fd4097b931 Remove duplicate fuzzer fuzz_parser_eval_bool_predicate from fuzzer build list (#15235)
`fuzz_parser_eval_bool_predicate` was accidentally included twice, so remove one.
2022-08-05 22:47:46 +00:00
Jakub Nyckowski 1b3a80f189 Reject invalid length in Mongo header (#14609) 2022-07-20 22:09:19 +00:00
Norbert SzeteiandZac Bergquist 0ab9716aac oss fuzz integration (#13473)
* Update api/types/fuzz_test.go
* do not fail if the file is missing
* missing go-118-fuzz-build fix

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2022-06-18 21:28:07 +00:00