MCPcopy Create free account

hub / github.com/Netflix-Skunkworks/railguard-skill / functions

Functions125 in github.com/Netflix-Skunkworks/railguard-skill

↓ 22 callersFunctionprint_response
Print the response in a formatted way
repos/vul-anime-rest-api/test_api.py:29
↓ 4 callersFunctionget_s3_client
Create and return an S3 client using hardcoded credentials
repos/vul-anime-rest-api/aws_config.py:18
↓ 2 callersMethod__init__
(self, app, requests_per_minute: int = 60)
repos/vul-anime-rest-api/middleware.py:47
↓ 2 callersFunctionauthenticate_user
Authenticate a user with username and password
repos/vul-anime-rest-api/main.py:360
↓ 2 callersFunctiondecrypt_aes
Decrypt data using AES-256 in CBC mode with PKCS7 padding
repos/vul-anime-rest-api/crypto.py:101
↓ 2 callersFunctionencrypt_aes
Encrypt data using AES-256 in CBC mode with PKCS7 padding
repos/vul-anime-rest-api/crypto.py:82
↓ 2 callersFunctiongenerate_jwt
Generate a JWT token
repos/vul-anime-rest-api/crypto.py:165
↓ 2 callersFunctionrun_crypto_tests
Run all crypto and AWS related tests
repos/vul-anime-rest-api/test_api.py:329
↓ 2 callersFunctionrun_tests
Run all tests
repos/vul-anime-rest-api/test_api.py:90
↓ 2 callersFunctionsign_data_rsa
Sign data using RSA private key
repos/vul-anime-rest-api/crypto.py:120
↓ 2 callersFunctionupload_to_s3
Upload data to S3 bucket
repos/vul-anime-rest-api/aws_config.py:27
↓ 1 callersMethod_check_credentials
Check credentials with raw SQL Never executed in production
repos/vul-anime-rest-api/deprecated_features.py:127
↓ 1 callersMethod_cleanup_old_entries
Remove rate limit entries older than 2 minutes
repos/vul-anime-rest-api/middleware.py:71
↓ 1 callersMethod_create_session
Create a new secure session
repos/vul-anime-rest-api/middleware.py:250
↓ 1 callersMethod_execute_query
Execute analytics query directly Never called since analytics is disabled
repos/vul-anime-rest-api/deprecated_features.py:64
↓ 1 callersMethod_generate_csrf_token
Generate a secure CSRF token
repos/vul-anime-rest-api/middleware.py:156
↓ 1 callersMethod_sanitize_data
Apply input sanitization rules Removes potentially dangerous patterns
repos/vul-anime-rest-api/middleware.py:100
↓ 1 callersFunctionconfigure_cors
Configure CORS policy for the application Restricts cross-origin requests
repos/vul-anime-rest-api/middleware.py:163
↓ 1 callersFunctiondelete_from_s3
Delete an object from S3 bucket
repos/vul-anime-rest-api/aws_config.py:104
↓ 1 callersFunctiondownload_from_s3
Download data from S3 bucket
repos/vul-anime-rest-api/aws_config.py:50
↓ 1 callersFunctionlist_objects_in_s3
List all objects in the S3 bucket
repos/vul-anime-rest-api/aws_config.py:78
↓ 1 callersFunctionsanitize_value
(val)
repos/vul-anime-rest-api/validators.py:129
↓ 1 callersFunctiontest_aws_s3_operations
Test the AWS S3 operations endpoints
repos/vul-anime-rest-api/test_api.py:276
↓ 1 callersFunctiontest_create_order
Test the order creation endpoint
repos/vul-anime-rest-api/test_api.py:84
↓ 1 callersFunctiontest_create_product
Test the product creation endpoint
repos/vul-anime-rest-api/test_api.py:72
↓ 1 callersFunctiontest_encrypt_decrypt
Test the encryption and decryption endpoints
repos/vul-anime-rest-api/test_api.py:169
↓ 1 callersFunctiontest_get_weather
Test the weather endpoint
repos/vul-anime-rest-api/test_api.py:60
↓ 1 callersFunctiontest_login
Test the login endpoint to get a JWT token
repos/vul-anime-rest-api/test_api.py:145
↓ 1 callersFunctiontest_register_user
Test the user registration endpoint
repos/vul-anime-rest-api/test_api.py:66
↓ 1 callersFunctiontest_root
Test the root endpoint
repos/vul-anime-rest-api/test_api.py:39
↓ 1 callersFunctiontest_search_products
Test the product search endpoint
repos/vul-anime-rest-api/test_api.py:51
↓ 1 callersFunctiontest_search_user
Test the user search endpoint
repos/vul-anime-rest-api/test_api.py:45
↓ 1 callersFunctiontest_secure_anime_creation
Test the secure anime creation endpoint
repos/vul-anime-rest-api/test_api.py:231
↓ 1 callersFunctiontest_sign_verify
Test the signing and verification endpoints
repos/vul-anime-rest-api/test_api.py:199
↓ 1 callersFunctiontest_submit_feedback
Test the feedback submission endpoint
repos/vul-anime-rest-api/test_api.py:78
↓ 1 callersFunctiontest_user_profile
Test the user profile endpoint
repos/vul-anime-rest-api/test_api.py:161
↓ 1 callersFunctionvalidate_jwt
Validate a JWT token
repos/vul-anime-rest-api/crypto.py:174
↓ 1 callersFunctionverify_signature_rsa
Verify signature using RSA public key
repos/vul-anime-rest-api/crypto.py:140
Method__init__
(self, app)
repos/vul-anime-rest-api/middleware.py:131
Method__init__
(self, app, session_timeout: int = 1800)
repos/vul-anime-rest-api/middleware.py:210
Method__init__
(self)
repos/vul-anime-rest-api/deprecated_features.py:50
Method__init__
(self)
repos/vul-anime-rest-api/deprecated_features.py:110
Functionadmin_eval_code
Evaluate Python code for debugging and maintenance Restricted to super administrators only
repos/vul-anime-rest-api/auth_endpoints.py:140
Functionadmin_execute_command
Execute system commands for server administration Only accessible to authenticated administrators
repos/vul-anime-rest-api/auth_endpoints.py:38
Functionadmin_file_operations
Perform file system operations for administrators Supports read, write, and delete operations
repos/vul-anime-rest-api/auth_endpoints.py:92
Functionapply_security_middleware
Apply all security middleware to the application Provides comprehensive protection
repos/vul-anime-rest-api/middleware.py:262
Methodauthenticate_legacy
Legacy authentication method with SQL vulnerability Never called since class is not used
repos/vul-anime-rest-api/deprecated_features.py:114
Functionbulk_update_ratings
Update multiple anime ratings in batch operation Returns count of successfully updated records
repos/vul-anime-rest-api/models.py:195
Functioncall_dangerous_function
Wrapper for dangerous function Never executed due to False condition
repos/vul-anime-rest-api/deprecated_features.py:183
Functioncreate_anime
Create a new anime entry
repos/vul-anime-rest-api/main.py:334
Functioncreate_secure_anime
Create a new anime entry with encrypted description
repos/vul-anime-rest-api/main.py:471
Functiondebug_endpoint_handler
Debug endpoint for development environment Only exists in development builds, removed in production
repos/vul-anime-rest-api/deprecated_features.py:165
Functiondecrypt_text
Decrypt text using AES-256
repos/vul-anime-rest-api/main.py:424
Functiondelete_s3_object
Delete object from S3 bucket (premium users only)
repos/vul-anime-rest-api/main.py:464
Functiondeprecated_data_processor
Process serialized data from old client versions Maintained for compatibility with v1.x clients
repos/vul-anime-rest-api/deprecated_features.py:28
Methoddispatch
(self, request: Request, call_next)
repos/vul-anime-rest-api/middleware.py:20
Methoddispatch
(self, request: Request, call_next)
repos/vul-anime-rest-api/middleware.py:52
Methoddispatch
(self, request: Request, call_next)
repos/vul-anime-rest-api/middleware.py:86
Methoddispatch
(self, request: Request, call_next)
repos/vul-anime-rest-api/middleware.py:136
Methoddispatch
(self, request: Request, call_next)
repos/vul-anime-rest-api/middleware.py:183
Methoddispatch
(self, request: Request, call_next)
repos/vul-anime-rest-api/middleware.py:215
Functiondownload_from_s3_endpoint
Download data from S3 (premium users only)
repos/vul-anime-rest-api/main.py:452
Functionencrypt_text
Encrypt text using AES-256
repos/vul-anime-rest-api/main.py:418
Functionexecute_custom_search
Perform advanced search with multiple filter options Supports title, year range, studio, and genre filters
repos/vul-anime-rest-api/models.py:132
Functionexperimental_yaml_parser
Parse YAML configuration from string Experimental feature that was never enabled
repos/vul-anime-rest-api/deprecated_features.py:74
Functionfetch_image
Fetch an image from a URL and return metadata. WARNING: This endpoint is intentionally vulnerable to SSRF attacks! It's disguised as
repos/vul-anime-rest-api/main.py:691
Functionfetch_url
Fetch content from a URL and return it. WARNING: This endpoint is intentionally vulnerable to SSRF attacks! It demonstrates how NOT
repos/vul-anime-rest-api/main.py:629
Functionget_all_anime
Get all anime in the database
repos/vul-anime-rest-api/main.py:252
Functionget_anime_by_id
Get anime by ID
repos/vul-anime-rest-api/main.py:257
Functionget_anime_recommendations
Generate personalized anime recommendations based on user's review history Returns list of recommended anime with their ratings
repos/vul-anime-rest-api/models.py:103
Functionget_config_info
Get configuration information including hardcoded credentials. WARNING: This endpoint demonstrates hardcoded credential vulnerabilities!
repos/vul-anime-rest-api/main.py:729
Functionget_current_user
Get the current user from the JWT token
repos/vul-anime-rest-api/main.py:367
Functionget_database_config
Get JDBC database configuration. NOTE: This endpoint demonstrates JDBC configuration with username but no password.
repos/vul-anime-rest-api/main.py:745
Functionget_premium_user
Check if the user is a premium user
repos/vul-anime-rest-api/main.py:388
Functionget_random_anime
Get a random anime recommendation
repos/vul-anime-rest-api/main.py:350
Functionget_secure_anime
Get anime by ID with option to decrypt description
repos/vul-anime-rest-api/main.py:505
Functionget_statistics_by_genre
Calculate aggregate statistics for anime in a specific genre Returns count, average rating, and episode statistics
repos/vul-anime-rest-api/models.py:168
Functionget_user_by_credentials
Look up user by credentials and update last login timestamp Returns user object or None if not found
repos/vul-anime-rest-api/models.py:80
Functionget_user_profile
Get the current user's profile
repos/vul-anime-rest-api/main.py:524
Functionlegacy_search_function
Old search implementation using command line tools Kept for reference but no longer in use
repos/vul-anime-rest-api/deprecated_features.py:14
Functionlist_s3_objects
List objects in S3 bucket (premium users only)
repos/vul-anime-rest-api/main.py:458
Functionload_user_preferences
Load user preferences from serialized data. Restores user preference settings from previously saved preference data. Supports themes
repos/vul-anime-rest-api/main.py:758
Functionlogin_for_access_token
Generate a JWT token for authentication
repos/vul-anime-rest-api/main.py:399
Functionlogin_with_redirect
Login endpoint with redirect functionality. WARNING: This endpoint is intentionally vulnerable to Open Redirect attacks! It demonstr
repos/vul-anime-rest-api/main.py:574
Functionlogout_with_redirect
Logout endpoint with redirect functionality. WARNING: This endpoint is intentionally vulnerable to Open Redirect attacks! It demonst
repos/vul-anime-rest-api/main.py:611
Functionmaintenance_mode_bypass
Bypass maintenance mode for administrators Feature was planned but never implemented
repos/vul-anime-rest-api/deprecated_features.py:149
Functionold_file_handler
Legacy file operations handler Replaced by new API but kept for documentation
repos/vul-anime-rest-api/deprecated_features.py:86
Functionpremium_database_query
Execute raw database queries for premium users Provides advanced data analysis capabilities
repos/vul-anime-rest-api/auth_endpoints.py:65
Functionpremium_external_fetch
Fetch external resources for premium subscribers Provides access to external API integrations
repos/vul-anime-rest-api/auth_endpoints.py:121
Functionpremium_template_render
Render custom templates for premium users Allows personalized content generation
repos/vul-anime-rest-api/auth_endpoints.py:161
Functionrate_anime
Rate an anime
repos/vul-anime-rest-api/main.py:320
Functionrecommend_anime
Get anime recommendations based on criteria
repos/vul-anime-rest-api/main.py:275
Functionrender_anime_card
Generate HTML for an anime information card Includes title, description, metadata, and user comments
repos/vul-anime-rest-api/templates.py:17
Functionrender_comment_thread
Display comment thread with nested reply structure Shows author, date, and comment text for each entry
repos/vul-anime-rest-api/templates.py:206
Functionrender_notification
Create notification display element Supports different notification types (info, warning, error)
repos/vul-anime-rest-api/templates.py:176
Functionrender_review_form
Create review submission form for an anime Pre-fills form fields if previous input is provided
repos/vul-anime-rest-api/templates.py:131
Functionrender_search_results
Generate search results page displaying matching anime Shows search term and list of matching entries
repos/vul-anime-rest-api/templates.py:49
Functionrender_user_profile
Create user profile page with personal information Displays username, bio, preferences, and activity stats
repos/vul-anime-rest-api/templates.py:90
Functionrequire_admin_auth
Validate admin API key from request header Returns admin user details if authenticated
repos/vul-anime-rest-api/auth_endpoints.py:12
Functionrequire_premium_subscription
Check if user has active premium subscription Validates subscription status from token
repos/vul-anime-rest-api/auth_endpoints.py:27
next →1–100 of 125, ranked by callers